Alpha blending: Difference between revisions
Appearance
Content deleted Content added
No edit summary |
rv spelling changes |
||
Line 1: | Line 1: | ||
'''Alpha blending''' is a [[convex combination]] of two [[ |
'''Alpha blending''' is a [[convex combination]] of two [[color]]s allowing for [[transparency]] effects in [[computer graphic]]s. The value of <code>[[alpha]]</code> in the color code ranges from 0.0 to 1.0, where 0.0 represents a fully transparent color, and 1.0 represents a fully opaque color. |
||
The value of the resulting |
The value of the resulting color when color <code>Value1</code> is drawn over a background of color <code>Value0</code> is given by: |
||
:<code>''Value'' = ''Value0''(1.0 − ''alpha'') + ''Value1''(''alpha'')</code> |
:<code>''Value'' = ''Value0''(1.0 − ''alpha'') + ''Value1''(''alpha'')</code> |
||
The alpha component is used to blend to [[red]], [[green]] and [[blue]] components equally, as in [[32-bit]] [[RGBA]], or, alternatively, there are three alpha values specified corresponding to each of the [[primary |
The alpha component is used to blend to [[red]], [[green]] and [[blue]] components equally, as in [[32-bit]] [[RGBA]], or, alternatively, there are three alpha values specified corresponding to each of the [[primary color]]s for [[spectral color]] [[filter (optics)|filter]]ing. |
||
Alpha blending is natively supported by these operating systems/GUIs: |
Alpha blending is natively supported by these operating systems/GUIs: |
||
Line 19: | Line 19: | ||
[[Category:Computer graphics]] |
[[Category:Computer graphics]] |
||
[[Category:Color]] |
|||
[[he:ערבול אלפא]] |
[[he:ערבול אלפא]] |
Revision as of 15:54, 9 November 2005
Alpha blending is a convex combination of two colors allowing for transparency effects in computer graphics. The value of alpha
in the color code ranges from 0.0 to 1.0, where 0.0 represents a fully transparent color, and 1.0 represents a fully opaque color.
The value of the resulting color when color Value1
is drawn over a background of color Value0
is given by:
Value = Value0(1.0 − alpha) + Value1(alpha)
The alpha component is used to blend to red, green and blue components equally, as in 32-bit RGBA, or, alternatively, there are three alpha values specified corresponding to each of the primary colors for spectral color filtering.
Alpha blending is natively supported by these operating systems/GUIs:
- Mac OS X
- Windows Me, 2000, XP
- most Linux graphical user interfaces (GUIs)