Making RGB color in Xcode

后端 未结 5 623
萌比男神i
萌比男神i 2020-12-02 07:06

I am using RGB values of a color from Photoshop and using the same in Xcode the values are.Color-R-160,G-97,B-5...the color in Photoshop appears yellowish but in Xcode when

5条回答
  •  情深已故
    2020-12-02 07:27

    The values are determined by the bit of the image. 8 bit 0 to 255

    16 bit...some ridiculous number..0 to 65,000 approx.

    32 bit are 0 to 1

    I use .004 with 32 bit images...this gives 1.02 as a result when multiplied by 255

提交回复
热议问题