ARGB is a color mode, which is the RGB color mode with an Alpha (transparency) channel added, commonly found in the storage structure of 32-bit bitmaps. The RGB color model 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. RGB represents the colors of the three channels of red, green, and blue. This standard covers almost all colors that can be perceived by human vision and is one of the most widely used color systems at present. RGBA is a color space that represents Red, Green, Blue and Alpha. Although it is sometimes described as a color space, it is really just the RGB model with additional information. The colors used are 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 compositing possible. The proposer named it alpha because the classic linear interpolation equation αA + (1-α)B uses this Greek letter. PNG is an image format that uses RGBA. The difference between 6-bit and 8-bit values when defining color in Android: 6-bit (#000000) is RGB value 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 values, which are relatively moderate transparency values What does the a in RGBA mean? How to use RGBA RGBA Color RGB is a color standard that produces a variety of colors by varying and superimposing red (R), green (G), and blue (B). To put it simply, RGBA adds a transparency channel Alpha to RGB.
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 first 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>123WORDPRESS.COM</li> <li>123WORDPRESS.COM</li> <li>123WORDPRESS.COM</li> </ul> </body> </html> This is the end of this article about the differences and introductions of ARGB, RGB and RGBA. For more information about the differences between ARGB, RGB and RGBA, please search previous articles on 123WORDPRESS.COM or continue to browse the related articles below. I hope you will support 123WORDPRESS.COM in the future! |
>>: Detailed explanation of HTML tables
The logs in MySQL include: error log, binary log,...
Recently, when I was sorting out the details of d...
Preface Recently, due to work reasons, I was work...
There are four types of positioning in CSS, which...
As a programmer who has just learned Tomcat, this...
I was recently working on a comment feature that ...
Table of contents Preface 👀 Start researching 🐱🏍...
Preface Recently, our company has configured mbp,...
Click here to return to the 123WORDPRESS.COM HTML ...
tomcat server configuration When everyone is lear...
In Linux, there are two types of file connections...
MySQL master-slave replication allows data from o...
This article uses examples to illustrate the func...
1.html <div class="loginbody"> &l...
Table of contents Vue2 Writing Vue3 plugin versio...