What is meant by rgba? | Sololearn: Learn to code for FREE!
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.

26th Mar 2022, 5:21 AM
🙂😀😃
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()
26th Mar 2022, 5:57 AM
👑 ShadowCipher 🇦🇲
👑 ShadowCipher 🇦🇲 - avatar
+ 3
Josh and Fuchsia thanks😊
26th Mar 2022, 6:18 AM
🙂😀😃
+ 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
26th Mar 2022, 6:00 AM
Fuchsia
Fuchsia - avatar