On OSX, how do I gradient fill a path stroke?

Posted by Emiel on Stack Overflow See other posts from Stack Overflow or by Emiel
Published on 2010-04-29T14:08:15Z Indexed on 2010/04/29 14:37 UTC
Read the original article Hit count: 275

Filed under:
|
|
|

Using the plethora of drawing functions in Cocoa or Quartz it's rather easy to draw paths, and fill them using a gradient. I can't seem to find an acceptable way however, to 'stroke'-draw a path with a line width of a few pixels and fill this stroke using a gradient. How is this done?

© Stack Overflow or respective owner

Related posts about osx

Related posts about cocoa