I am not understanding how to get the colour you want for the text-show.I just don't know how this rgba(0,0,255,1) becomes blue. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I am not understanding how to get the colour you want for the text-show.I just don't know how this rgba(0,0,255,1) becomes blue.

20th Jul 2018, 12:34 PM
Abdirizak Mohamed
Abdirizak Mohamed - avatar
8 Answers
+ 4
Most important colors, you can memorize. And there are color pickers you can find online for the purpose.
20th Jul 2018, 12:51 PM
Satyam
+ 3
Hi Abdirizak Mohamed , RGBA means Red, Green, Blue, Alpha. So if the values go from 0 to 255 for RGB values and 0 to 1 for alpha, 0 means nothing and 255 means full, so 255 in Blue parameter means full blue Do you understand now? Hope it helps you
20th Jul 2018, 1:36 PM
Guillem Padilla
Guillem Padilla - avatar
+ 3
Abdirizak Mohamed This might help you in picking colors: • http://paletton.com/
20th Jul 2018, 1:41 PM
Harsh
Harsh - avatar
+ 2
What you don't understand? I mean, 0,0,255,1 is blue with no transparency.
20th Jul 2018, 12:44 PM
Satyam
+ 2
white is 255,255,255,1 and black is 0,0,0,1.
20th Jul 2018, 12:50 PM
Satyam
+ 2
Thanks very much S. C. i get it now
20th Jul 2018, 12:54 PM
Abdirizak Mohamed
Abdirizak Mohamed - avatar
+ 2
you're welcome!
20th Jul 2018, 12:54 PM
Satyam
+ 1
thanks S. C. but how do you know the codes of different colours?? I dont get that.If this (0,0,255,1) what are the codes for black white and how do you identify them
20th Jul 2018, 12:49 PM
Abdirizak Mohamed
Abdirizak Mohamed - avatar