Why +[UIColor colorWithHue:saturation:brightness] create a color with a different hue as output?
See my example below. The hue input was 0.223404 , however the output looking at the color created was 0.229560
Test code:
UIColor *uic = [UIColor colorWithHue:0.223404 saturation:0.944000 brightness:0.990291 alpha:1.0]; NSLog(@"Color Created: %f, %f, %f", uic.hue, uic.saturation, uic.brightness);
Output:
Color Created: 0.229560, 0.944000, 0.990291
source share