Re: Neatly fitting a dash to a rect
Re: Neatly fitting a dash to a rect
- Subject: Re: Neatly fitting a dash to a rect
- From: Andy Lee <email@hidden>
- Date: Thu, 12 Dec 2013 10:13:33 -0500
On Dec 12, 2013, at 10:06 AM, Andy Lee <email@hidden> wrote:
> Does it have to be the same exact pattern all the way around? If it's okay to differ a teeny bit (I bet imperceptibly), you could solve the problem separately for the horizontal edges and the vertical edges, and draw four lines instead of one rect.
Not sure if this might come out looking wrong depending on lineCap/lineJoin styles.
If so, all I can think of is to figure out *two* sets of "fudge" amounts, for the horizontal and vertical edges, and maybe apply their average to the dash pattern. I don't know if the math would work out. This is already just about as much as my brain can handle at the moment. :)
--Andy
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden