Blending colors in the presence of transparency
US6421460B1 · kind B1 · utility
Assignee
Inventor
Key dates
| Filing date | May 6, 1999 |
| Grant date | Jul 16, 2002 |
| Priority date | — |
| Expiry date | May 6, 2019 |
Classification
- Technology area (CPC G)Physics
- CPC primaryG06T15/503
- WIPO fieldComputer technology
- WIPO sectorElectrical engineering
Abstract
Methods and apparatus for blending colors in the presence of transparency. The method includes blending a lower and an upper graphic element in accordance with a transfer mode by calculating a transfer color from a lower element color and an upper element color according to the transfer mode without regard either to a lower element alpha or to an upper element alpha; calculating a resulting alpha from the lower element alpha and the upper element alpha without regard to any of the lower element color, the upper element color, or the transfer mode; and calculating a resulting color as a weighted average of the lower element color, the transfer color, and the upper element color. The transfer mode can be an arbitrary transfer mode and can be user defined. The resulting graphic element <C,c> having color value C and alpha value c can be calculated in accordance with<C,c>=XFade(<A,a>, XFade(<B,1>, <T(A,B), 1>, a), b),where XFade (<X,x>, <Y,y>, z)=<R,r> is an operation defined by the formulasr=InterpolateAlpha(x, y, z),t=y·z/r,andR=InterpolateColor(X, Y, t)and where the lower element is <A,a> and the upper element is <B,b>. Each of the colors A, B, and C can be defined by a value…
Source: USPTO / EPO open patent data. Objective bibliographic and citation counts.