What does rgba mean?

藏色散人
Release: 2020-10-12 16:35:23
Original
23639 people have browsed it

rgba refers to the color space of Red (red), Green (green), Blue (blue) and Alpha. rgba is sometimes described as a color space, but it is really just an rgb model with additional information attached.

What does rgba mean?

RGBA refers to the color space of Red (red), Green (green), Blue (blue) and Alpha. Sometimes rgba is described as a color space, but it is really just the rgb model with additional information appended.

The color used is RGB and can belong to any RGB color space, but Catmull and Smith proposed this indispensable alpha value between 1971 and 1972, making alpha rendering and alpha synthesis possible. The proposer named it after alpha because the classical linear interpolation equation αA (1-α)B uses this Greek letter.

The alpha channel is generally used as the opacity parameter. A pixel with an alpha channel value of 0% is completely transparent (i.e. invisible), while a value of 100% means a completely opaque pixel (traditional digital image).

A value between 0% and 100% causes the pixel to show through the background, like through glass (translucency). This effect is simple binary transparency (transparent or opaque) can't be done. It makes digital compositing easy. The alpha channel value can be expressed as a percentage, an integer, or as a real number from 0 to 1 like the RGB parameter.

Sometimes it is also written ARGB (like RGBA, but the first data is alpha), which is the terminology used by Macromedia products. For example, 0x80FFFF00 is 50% transparent yellow because all parameters are represented in the range 0 to 255. 0x80 is 128, which is about half of 255.

PNG is an image format that uses RGBA.

The above is the detailed content of What does rgba mean?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template