Is there any method in Cocoa that helps iterating through all NSColor values(R,G,B only, alpha not t

Posted by krasnyk on Stack Overflow See other posts from Stack Overflow or by krasnyk
Published on 2010-05-30T19:39:31Z Indexed on 2010/05/30 19:42 UTC
Read the original article Hit count: 210

Filed under:
|

You may ask why do I need it? I have to detect all white objects at the B/W image. I'm coloring each object and taking its rect. In order fill each object with different color I would be very happy to use a function that can for a given color gimme a next one or so.

In Qt there is a nice one that is called nextColor or so, returns the integer representing the next color(which can be easily translated to RGB).

Does Cocoa have sth like that?

© Stack Overflow or respective owner

Related posts about cocoa

Related posts about nscolor