How RGBA values converted to 0-1 range 0-255

Such a rgba (1,0,0,1)

If we want to convert to the range of 0-255 is multiplied by 255 rgb

Is rgba (255,0,0,1)

 

0-255 rpm range 0-1

As rgba (34,56,56,1) is converted to the range of 0-1

r

Guess you like

Origin www.cnblogs.com/reround/p/12027554.html