RGB decimal
in
Programming Questions
•
1 year ago
Is it possible to extract decimal values from a colour ?
Example
color c = color(251.2,200.3,200.4);
float rr = c>>16&255
print (rr);
this prints 251.0 instead of 251.2
Are colors stored without decimals?
Example
color c = color(251.2,200.3,200.4);
float rr = c>>16&255
print (rr);
this prints 251.0 instead of 251.2
Are colors stored without decimals?
1