Skip navigation.
 
mlRe: Problem drawing multiple parallel lines
FROM : Andy Lee
DATE : Fri Jul 25 21:23:50 2008

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

Related mailsAuthorDate
mlProblem drawing multiple parallel lines Mark Teagarden Jul 25, 20:24
mlRe: Problem drawing multiple parallel lines Andy Lee Jul 25, 21:23
mlRe: Problem drawing multiple parallel lines Mark Teagarden Jul 26, 00:08
mlRe: Problem drawing multiple parallel lines Quincey Morris Jul 26, 00:32
mlRe: Problem drawing multiple parallel lines Mark Teagarden Jul 26, 00:59