+ 3

What happens if we go above 255 for the value of rgb in color in css.

Like color : rgb(256,0,0);

6th Jun 2020, 7:31 PM
Aditya Nair 🇮🇳
Aditya Nair 🇮🇳 - avatar
7 odpowiedzi
+ 3
in some cases Aditya but for the most part it is white or transparent as there is no 256 in the rgb color scheme...
6th Jun 2020, 7:42 PM
BroFar
BroFar - avatar
+ 4
Thanks Hardik Thanks BroFar mod for your valuable views on this question 🙏
6th Jun 2020, 7:51 PM
Aditya Nair 🇮🇳
Aditya Nair 🇮🇳 - avatar
+ 1
First of all its Red Green Blue (RGB) and second thing it has 256 shades for each color from 0-255 so it will make no change after 255. Thanks
6th Jun 2020, 7:35 PM
Hardik Sharma
Hardik Sharma - avatar
+ 1
I read somewhere that if we open a image which have value of pixel as 256 the phone will go blank or say not functional specially in Samsung Mobile handset is it true and if true then if I put a value of 256 in the rgb in playground will my phone also crash
6th Jun 2020, 7:39 PM
Aditya Nair 🇮🇳
Aditya Nair 🇮🇳 - avatar
+ 1
No it's not like that the image may be corrupted in that case
6th Jun 2020, 7:41 PM
Hardik Sharma
Hardik Sharma - avatar
+ 1
You're most welcome
6th Jun 2020, 7:54 PM
Hardik Sharma
Hardik Sharma - avatar
0
it also pays to know why there are only 256 shades. it is based on the binary system a bit can either be 0 or 1 there are 8 bits in a byte 8^2=256
7th Jun 2020, 8:13 AM
Logomonic Learning
Logomonic Learning - avatar