The filled_arc approximation has a bug somewhere in it.
I had a look in cvs, and see you approximate the filled
arc with a filled polygon. However, you add an extra
point in the polygon which breaks the approximation.
For an filled arc between -7 and -37 I also get a
polygon vertex up around 37.
Looking at the code in cvs it seems a typo in the loop
initialisation. The initialisation has:
pts = dtoi(y+r2*sin(a));
but the loop body uses:
pts = dtoi(y-r2*sin(a+i*da));
Shouldn't it be a '-' instead of a '+' in the
initialisation? I haven't tested this, but it seems to
account for the erroneous behaviour in my jpgs.
Thanks for the great library, though.
Log in to post a comment.