Jump to content

Alpha blending: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Jachin (talk | contribs)
No edit summary
DreamGuy (talk | contribs)
rv spelling changes
Line 1: Line 1:
'''Alpha blending''' is a [[convex combination]] of two [[colour]]s allowing for [[transparency]] effects in [[computer graphic]]s. The value of <code>[[alpha]]</code> in the colour code ranges from 0.0 to 1.0, where 0.0 represents a fully transparent colour, and 1.0 represents a fully opaque colour.
'''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 colour when colour <code>Value1</code> is drawn over a background of colour <code>Value0</code> is given by:
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''&nbsp;=&nbsp;''Value0''(1.0&nbsp;&minus;&nbsp;''alpha'')&nbsp;+&nbsp;''Value1''(''alpha'')</code>
:<code>''Value''&nbsp;=&nbsp;''Value0''(1.0&nbsp;&minus;&nbsp;''alpha'')&nbsp;+&nbsp;''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 colour]]s for [[spectral colour]] [[filter (optics)|filter]]ing.
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:Colour]] [[Category:Color]]
[[Category:Color]]


[[he:&#1506;&#1512;&#1489;&#1493;&#1500; &#1488;&#1500;&#1508;&#1488;]]
[[he:&#1506;&#1512;&#1489;&#1493;&#1500; &#1488;&#1500;&#1508;&#1488;]]

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:

See also