rgb values to 0 to 1 scale
a = x / 255
or
x = a * 255
where x
is the RGB value and a
is your desired result.
It's simply a case of dividing your RGB value, call it x
by 255:
If x = 95
then your value is 95/255 = 0.373
(to 3 d.p.)
a = x / 255
or
x = a * 255
where x
is the RGB value and a
is your desired result.
It's simply a case of dividing your RGB value, call it x
by 255:
If x = 95
then your value is 95/255 = 0.373
(to 3 d.p.)