RGBA stands for Red-Green-Blue-Alpha and specifies a color using four values which represent the amount of red, green, blue and alpha (opacity) in the color.
Questions tagged [rgba]
538 questions
11
votes
3 answers
How do I set the R, G, B and Alpha components of a color?
There are 3 integer values that makes up a RGB value, and also i have the Alpha component value of the color. how do i set these 4 values to get the desired colour

Illep
- 16,375
- 46
- 171
- 302
11
votes
1 answer
RGBA code for red color
I'm looking for RGBA code for red color with opacity: Can someone tell me how can i find about it?(or where i can learn more about RGBA colors? Thanks.

jay
- 137
- 1
- 1
- 3
11
votes
2 answers
RGB/RGBA color values in Protractor
The Story:
In several places in our test codebase we assert different CSS values to be equal to expected values. Usually, this is a color, background-color, font related style properties, or cursor. This question is about dealing with colors.
Here…

alecxe
- 462,703
- 120
- 1,088
- 1,195
11
votes
1 answer
Alpha Blending 2 RGBA colors in C
Possible Duplicate:
How to do alpha blend fast?
What is the fastest way to alpha blend 2 RGBA (Integer) colors?
As a note, the target color where to blend is always opaque, only the second color can have different levels of transparency.
I am…

PerracoLabs
- 16,449
- 15
- 74
- 127
11
votes
1 answer
Determine RGBA colour received by combining two colours
I have two colours defined as RGBA (in my specific examples, one of the set is [white with alpha 0.85] and [57, 40, 28 with alpha 0.25]. The second colour is drawn over the first one (i.e. white with alpha is the background and the second colour is…

Aleks G
- 56,435
- 29
- 168
- 265
10
votes
7 answers
How do I get the corresponding Hex value of an RGB color in Excel/VBA?
I'm trying to set a public const of a color in my VBA code. Normally, I can use:
Dim BLUE As Long
BLUE = RGB(183, 222, 232)
However, there's no way to public const that because of the RGB function. I converted this RGB value to Hex using an…

Brandon
- 779
- 5
- 9
- 28
10
votes
1 answer
Convert ImageSharp.Image to ImageSharp.PixelFormats.Rgba32?
I am following a tutorial (https://opentk.net/learn/chapter1/4-textures.html) using ImageSharp. How do I convert the type 'ImageSharp.Image' to 'ImageSharp.PixelFormats.Rgba32'?
To load the Image, I am using
Image image = Image.Load(path);…

Tiarnan
- 115
- 1
- 10
10
votes
1 answer
Python OpenCV - overlay an image with transparency
What I'm trying to achieve is to place an image with transparency on top of another one. Something like this:
I haven't been able to find any solution, so I decided to go pixel by pixel and calculate the resulting color. That one worked for me, but…

Dusan
- 3,284
- 6
- 25
- 46
9
votes
3 answers
CSS rgba transparency bug in Chrome?
Just placing a DIV with white background and any opacity value:
background-color: rgba(255, 255, 255, .5);
over a white (255x3) background. Actually DIV's background will be 254/254/254. This happen only in Chrome. FF/IE/Opera/Safari is ok.
Bug?

Levon
- 189
- 2
- 8
9
votes
2 answers
Set background color on div with jQuery?
I have been working with a piece of HTML / JavaScript code I found to produce a nice little hover effect: http://jsfiddle.net/RaEER/1/
You'll notice at first there is a white space above the placeholder image.
When I mouseover over it, it goes…

michaelmcgurk
- 6,367
- 23
- 94
- 190
9
votes
6 answers
Fast Converting RGBA to ARGB
I am trying to convert a rgba buffer into argb, is there any way to improve the next algorithm, or any other faster way to perform such operation?
Taking into account that the alpha value is not important once in the argb buffer, and should always…

PerracoLabs
- 16,449
- 15
- 74
- 127
8
votes
0 answers
How to use PIL to merge channel images into one RGB image?
I've multiple PNG image files, one per channel: red, green, blue and yellow.
How I could merge them into one RBGA image?
So far I tried the following
from PIL import Image
red = Image.open('red.png')
green = Image.open('green.png')
blue =…

bachr
- 5,780
- 12
- 57
- 92
8
votes
1 answer
iOS WKWebView get RGBA pixel color from point
How can I get the RGBA pixel color of a point from a WKWebView?
I have a working solution for the UIWebView, but I would like to use the WKWebView instead. When I tap on a point of the screen I'm able to retrieve the color value in RGBA from the…

Tassilo Waldraff
- 191
- 6
8
votes
2 answers
Having a fallback for a transparent background RGBA background in CSS
I have a div over an image that I use on hover to have some kind of milky layer, which I get with background-color:rgba(255,255,255,0.1).
As I am cross browser testing my web site, I realize that rgba is not supported by IE8. So what I would like is…

Marc
- 9,217
- 21
- 67
- 90
8
votes
2 answers
Chrome getComputedStyle() returns wrong RGBA color?
I set an rgba() bg-color in Chrome (Win7, 19.0.1084.56)
I get the background-color with window.getComputedStyle(), & it is different
I set the retrieved value on a new element
I retrieve it again, its different again
Here is a fiddle:…

zupa
- 12,809
- 5
- 40
- 39