rgb values to 0 to 1 scale

前端 未结 4 381
春和景丽
春和景丽 2021-02-02 06:53

I\'m trying to calculate some RGB colors (0 - 255) for a 0 to 1 scale. Does anyone knows a online converter or it exists a ma

4条回答
  •  天涯浪人
    2021-02-02 07:45

    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.)

提交回复
热议问题