2 ms·
What object would you pass to NSColor to generate a color from HSB components? Wrap them to NSHue, NSSaturation, and NSBrightness? Or generate NSHueParameters f
by dchest 17y ago
What object would you pass to NSColor to generate a color from HSB components? Wrap them to NSHue, NSSaturation, and NSBrightness? Or generate NSHueParameters first?
(Please note that I don't intend to argue, I'm asking for a better solution. Thanks!)
- tlrobinson 17y agoI think he's referring to the API to get the components out of the NS/UIColor, not create the NS/UIColor object.
- dchest 17y agoThere are individual methods like `hueComponent` if you want them. http://developer.apple.com/mac/library/documentation/cocoa/reference/ApplicationKit/Classes/NSColor_Class/Reference/Reference.html#//apple_ref/doc/uid/20000353-SW10 http://developer.apple.com/mac/library/documentation/cocoa/r... I still don't get the point.