CGShading line, triangle?
CGShading line, triangle?
- Subject: CGShading line, triangle?
- From: Alex Eddy <email@hidden>
- Date: Mon, 8 Dec 2003 18:33:10 -0800
Is there any straightforward way to gradient fill a triangle in Cocoa
or CoreGraphics, where each corner has a different color?
For that matter, what about gradient filling a thick line, taking into
account the line pattern and end cap style?
It looks like CGShading only supplies linear and radial fills which
won't do the triangle case, and it just fills the current clip path,
which means to fill a wide line with round end caps I'll have to do all
the geometry calculations myself to build the line.
Is it really this un-featured? Is there a clever workaround?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.