• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Neatly fitting a dash to a rect
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Neatly fitting a dash to a rect (From: Graham Cox <email@hidden>)
 >Re: Neatly fitting a dash to a rect (From: Andy Lee <email@hidden>)

  • Prev by Date: Re: Neatly fitting a dash to a rect
  • Next by Date: Re: Neatly fitting a dash to a rect
  • Previous by thread: Re: Neatly fitting a dash to a rect
  • Next by thread: Re: Neatly fitting a dash to a rect
  • Index(es):
    • Date
    • Thread