feloniousMonk has asked for the wisdom of the Perl Monks concerning the following question:

Hi

I'm attempting to draw a series of arcs using GD. However, I need them to be wider than 1 pixel - is there any way to do this?

I don't believe that GD.pm can do it and I've not found another graphics module to do what I need.

I have already tried to print many concentric arcs to fill in the space, but this leaves a pretty ugly looking arc.

Just a note, I will be creating multiple, varied-size arcs which will create a complete circle.

Thanks,
-felonious--

Replies are listed 'Best First'.
Re: Graphics - drawing wide arcs
by kvale (Monsignor) on Sep 11, 2002 at 18:39 UTC
    I believe you can set the brush properties and draw with said brush to create meaty arcs (untested)
    #!/usr/local/bin/perl use GD; # Create a flat wide rectangle paintbrush $brush = new GD::Image(10,10); $brush->colorAllocate(255,255,255); # white $brush->colorAllocate(0,0,0); # black $brush->transparent($white); # white is transparent $brush->filledRectangle(0,0,5,2,$black); # a black rectangle # Draw an oval $im->setBrush($brush); $im->arc(100,100,100,150,0,360,gdBrushed);

    -Mark