GD - GD arc and filledArc drawing error?

Posted on Fri Jul 25 20:26:05 2008 by wichne
GD arc and filledArc drawing error?

Has anyone else encountered this? I am trying to draw arcs. In the documentation, it says to pass 'start' and 'end' as values between 0 and 360, with 0 being the top of the ellipse. But when I pass in start and end values close to 0, they are rendered at 90 degrees on the circle. An example of the data passed:

$img->filledArc(520, 520, 500, 500, 0.01, 1.37, $color);

Is this a bug, or am I doing something wrong? Or does the documentation just need to be changed? ;)

Bill

Write a response