I have an image in Fireworks. I am using the picker to choose the color and then look at the RGB values. I am putting these values into UIColor:colorWithRed:green:blue:alpha
but it is not giving me the same output. I am using values between 1.0 and 0.0.
I am trying to get a dark blue color, the UIColor
is giving me a very light blue.
Ideas?
Sounds to me like your calculations for converting the value from fireworks to the value necessary in UIColor is off.
example:
Fireworks RGB values red:64 green:87 blue:188
divide those three number each by 255
gives you
[UIColor colorWithRed:0.250980392156863 green:0.341176470588235 blue:0.462745098039216 alpha:1.0]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With