FROM : Mark Teagarden
DATE : Fri Jul 25 20:24:47 2008
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
DATE : Fri Jul 25 20:24:47 2008
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
| Related mails | Author | Date |
|---|---|---|
| Mark Teagarden | Jul 25, 20:24 | |
| Andy Lee | Jul 25, 21:23 | |
| Mark Teagarden | Jul 26, 00:08 | |
| Quincey Morris | Jul 26, 00:32 | |
| Mark Teagarden | Jul 26, 00:59 |






Cocoa mail archive

