Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Bug in GD?
- 0liver 'ojo' Bedf0rd
May 5, 2010, 8:53 pm
rate this thread
The following code:
my $im = new GD::Image(500,500);
my $white = $im->colorAllocate(255,255,255);
my $black = $im->colorAllocate(0,0,0);
my $red = $im->colorAllocate(255,0,0);
my $blue = $im->colorAllocate(0,0,255);
produces full (360 °) circles in the output image, although I would
have guessed that no output at all (or a single pixel/line) is produced.
I still find it more sensible to assume that if start and end angle
are the same "minimal" output is created and not the "maximum" one.
So: am I wrong or is this a bug in GD?
Re: Bug in GD?
Am Wed, 05 May 2010 22:59:15 +0100 schrieb Ben Morrow:
I didn't find anything relevant.
The "right" way to produce a full circle is of course to set the starting
angle to 0° and the end angle to 360°. (*)
Should produce a full circle IMVHO:
Should produce "nothing" IMVHO
(*) I'm aware that 0°==360° from a mathematical point of view
- » FAQ 8.37 How do I find out if I'm running interactively or not?
- — Next thread in » PERL Discussions