bennyguitar / Colours

A beautiful set of predefined colors and a set of color methods to make your iOS/OSX development life easier.
MIT License
3.09k stars 300 forks source link

Function for Complementary color form RGBA color #12

Closed slcott closed 10 years ago

slcott commented 11 years ago

I'd like a function like the following for the Colours category you've created:

- (UIColor *)complementarySecondaryColorForColor:(UIColor *)primaryColor
{
    UIColor *secondaryColor;

    // calculated secondary complement

    return secondaryColor;
}

I would love if this code was written for objective-C.

Perhaps I'll just create it myself.