草庐IT

colorWithHue

全部标签

iphone - 为什么 UIColor colorWithHue :Sat:Brightness produce color with different hue as output?

为什么+[UIColorcolorWithHue:saturation:brightness]会产生不同色调的颜色作为输出?请参阅下面的示例。色调输入是0.223404,但是查看所创建颜色的输出是0.229560测试代码:UIColor*uic=[UIColorcolorWithHue:0.223404saturation:0.944000brightness:0.990291alpha:1.0];NSLog(@"ColorCreated:%f,%f,%f",uic.hue,uic.saturation,uic.brightness);输出:ColorCreated:0.229560,