• 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: Problem drawing multiple parallel lines
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem drawing multiple parallel lines


  • Subject: Re: Problem drawing multiple parallel lines
  • From: Andy Lee <email@hidden>
  • Date: Fri, 25 Jul 2008 15:23:50 -0400

Can you show your code?

--Andy

On Jul 25, 2008, at 2:24 PM, Mark Teagarden wrote:

Hi,

I’m trying to draw a simple game board similar to a chinese checkerboard.
As a first attempt I set up a routine to draw 10 parallel lines of the same
length, 16 pixels apart along the x axis and continuing NE at a 60 degree
angle. I used NSBezierPath moveTo / lineTo to do this. The program draws
the lines, but each line is progressively thinner and thinner; if I had to
guess I’d say the first line is 3 px wide and the last, 0.5. Even if I
alter the code so that on each iteration of the loop the default width is
set to my desired width (0.5 px), the same thing happens. Can anyone offer
an explanation of why? Obviously Quartz is capable of drawing the type of
line I want, because the last ones look correct. Why the line width
gradient?


Thanks,
Mark
_______________________________________________

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: 
 >Problem drawing multiple parallel lines (From: Mark Teagarden <email@hidden>)

  • Prev by Date: re: Core Data Debugging
  • Next by Date: Re: NSOutlineView with Multiple Core Data Entities
  • Previous by thread: Problem drawing multiple parallel lines
  • Next by thread: Re: Problem drawing multiple parallel lines
  • Index(es):
    • Date
    • Thread