By bloid
via cocoawithlove.com
Published: Sep 17 2008 / 07:26
This post presents a function — DrawGlossGradient(CGContextRef context, NSColor *color, NSRect inRect) — that will draw a "gloss" gradient in a single statement. All colors in the gradient are calculated from the single color parameter.
Add your comment