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
        stroke_and_fill?
} 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.

Andrew




Reply via email to