ARGB is a color mode, which is an RGB color mode plus an Alpha (transparency) channel, which is common in the storage structure of 32-bit bitmaps.
RGB color mode is a color standard in the industry. It obtains a variety of colors by changing the three color channels of red (R), green (G), and blue (B) and superimposing them on each other. Yes, RGB represents the colors of the three channels of red, green, and blue. This standard includes almost all colors that human vision can perceive. It is one of the most widely used color systems currently.
RGBA is a color space representing Red, Green, Blue and Alpha. Although it is sometimes described as a color space, it is really just additional information added to the RGB model. 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. PNG is an image format that uses RGBA.
The difference between 6-bit or 8-bit values when defining color in android: 6-bit (#000000) is the RGB value and 8-bit (#1e000000) ARGB. The first two bits are transparency, 00 is completely transparent, ff is completely opaque, and the last 6 bits are RGB value, relatively moderate transparency value
What does a in rgba mean? How to use rgba
RGBA color
RGB is a color standard that produces a variety of colors by changing and superimposing red (R), green (G), and blue (B) on each other. To put it bluntly, RGBA adds a transparency channel Alpha to RGB.
grammar:
rgba(R,G,B,A)
illustrate:
R: red value (Red);
G: green value (Green);
B: Blue value (Blue);
A: Transparency (Alpha);
The three parameters R, G, and B can be positive integers or percentages. The positive integer value ranges from 0 to 255, and the percentage value ranges from 0.0% to 100.0%. Values outside the range are rounded to the nearest value limit. Not all browsers support using percentage values.
Parameter A is transparency, similar to the opacity attribute. The value range is between 0.0 and 1.0 and cannot be negative. The following is the correct usage of RGBA colors:
rgba(255,255,0,0.5)
rgba(50%,80%,50%,0.5)
Example:
<!DOCTYPEhtml> <htmlxmlns="http://www.w3.org/1999/xhtml"> <head> <title>CSS3RGBA color</title> <styletype="text/css"> *{padding:0;margin:0;} ul { display:inline-block; list-style-type:none; width:200px; } li { height:30px; line-height:30px; font-size:20px; font-weight:bold; text-align:center; } /*The 1st li*/ li:first-child { background-color:#FF00FF; } /*The second li*/ li:nth-child(2) { background-color:rgba(255,0,255,0.5); } /*The third li*/ li:last-child { background-color:#FF00FF; opacity:0.5; } </style> </head> <body> <ul> <li>downcodes.com</li> <li>downcodes.com</li> <li>downcodes.com</li> </ul> </body> </html>
This concludes this article on the differences and introduction of colors between ARGB, RGB, and RGBA. For more information on the differences between ARGB, RGB, and RGBA, please search previous articles on downcodes.com or continue to browse the related articles below. I hope you all Please support downcodes.com more in the future!