+ 3
What happens if we go above 255 for the value of rgb in color in css.
Like color : rgb(256,0,0);
7 Respostas
+ 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...
+ 4
Thanks Hardik
Thanks BroFar mod for your valuable views on this question 🙏
+ 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
+ 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
+ 1
No it's not like that the image may be corrupted in that case
+ 1
You're most welcome
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