Re: CGShading line, triangle?
Re: CGShading line, triangle?
- Subject: Re: CGShading line, triangle?
- From: Alex Eddy <email@hidden>
- Date: Tue, 9 Dec 2003 13:47:51 -0800
On Dec 9, 2003, at 11:04 AM, Alex Eddy wrote:
Ah, this approach seems like it would work, even if it takes three
passes. (After writing some code... ) you can get the gradients to
align correctly by drawing the gradient from the midpoint of the
opposite side of the triangle to your corner plus half the vector of
the opposite side. However, there is a crippling problem, see further
below.
Whoops, my math was way off-- should be drawing from the midpoint, to
the intersection of( the vector perpendicular to the midpoint) and (the
vector parallel to the midpoint and a far point, anchored from the
close point)
_______________________________________________
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.