Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren+ 2
What is meant by rgba?
I saw this in a code. background: rgba(241, 80, 47, .3); Can someone explain it.
3 Antworten
+ 6
the rgba() is used in setting colours to the elements.
R - red
G - green
B - blue
A - alpha for opacity
You can change the color by changing the values inside rgba()
+ 2
It's an RGB color value with an alpha channel, alpha means opacity value of the color.
Your code above have value like this:
Red = 241
Green = 80
Blue = 47
Alpha = 0.3