Tuesday, 10 September 2013

make a NSGradient from a given NSColor

make a NSGradient from a given NSColor

I have a function that paints a particular area with the NSColor that is
passed to it. To give it a sort of 3D look I need to paint it with a
Gradinet of the given color. Suppose NSColor is blueColor then the area
should be painted with something like lightblue to blueColor or something
as such so that I can get a slight gradient effect.
So my question is how can I create NSColor which is lighter than the
NSColor that is passed to the function.

No comments:

Post a Comment