> On 4 Apr 2015, at 1:13 pm, Roland King <r...@rols.org> wrote: > > That’s most definitely not what Graham is looking for. He’s looking for a way > to convert colours programatically, and cross-platform iOS and OSX (no > colorsync on iOS).
That's right. In short, a CG equivalent to -[NSColor colorUsingColorspace:] is what I need - I just need to ensure that colours that could originate as grays for example, end up as RGBA colours, since I'm doing work directly on the four components. Converting gray is easy enough actually, if I have to do that myself, but it would be nice if there were a funciton that would work across all possible colorspaces. I thought Id' seen a CG function for this in the past, but I can't remember where I saw it and I may be mistaken. --Graham _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com