Problem drawing multiple parallel lines
Problem drawing multiple parallel lines
- Subject: Problem drawing multiple parallel lines
- From: Mark Teagarden <email@hidden>
- Date: Fri, 25 Jul 2008 13:24:47 -0500
- Thread-topic: Problem drawing multiple parallel lines
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