[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Circles

From: Andrew Bernard
Subject: Re: Circles
Date: Thu, 11 Aug 2022 14:14:04 +1000

Ah yes it is in the postscript area of the source code.

/draw_circle % filled? radius thickness draw_circle
        setlinewidth    % f? r
        currentpoint    % f? r x0 y0
        3 2 roll        % f? x0 y0 r
        dup 0 rmoveto
        0 360 arc closepath
} bind def

Simple use of 360 degree arc. Answers what I wanted to know. There's a lot of oldish webpages with complex Bezier curve constructions for circles.Perhaps a version earlier than Postscript 3 did not have the arc operator. Otherwise I don't know why you would bother.

Sorry for the noise.

On 11/08/2022 11:40 am, Andrew Bernard wrote:
Where is the code that actually draws a circle stencil? I am interested to see if it is done with Bezier curve techniques and to study that. I could not seem to find it in the scm area.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]