A better drawing routine for quartz


In order to support GradientLine it was necessary to go all the way down to the core , namely Quartz which is part of CoreGraphics. So currently implementing a routine to support GradientLine Directly.

Tests:

Clickable Button with gradient and 2 states (Video):
Vimeo video

Cap and Joint style support:
img img

Radial gradient with Radial gradient line:
img

Radial gradient:
img

Multiple gradient stops (with a custom automated stop creator):
img

Many shapes implemented in the same context:
img

GradientLine and GradientFill:
img

GradientStroke:
img

GradientFill and ColorStroke:
img

Notable findings:

This link has many cocoa examples (no gradient line)
link

Pretty cool use of gradient in Cocoa:

example

link