ajstarks / openvg

Tools for exploring OpenVG
Other
414 stars 85 forks source link

Inconsistency on Circle/CircleOutline third parameter #70

Closed 5o50 closed 4 years ago

5o50 commented 4 years ago

The documentation says :

void Circle(VGfloat x, VGfloat y, VGfloat r) Draw a circle centered at (x,y) with radius r.

Circle() is just a wrapper around Ellipse() that directly pass r parameter, thus the advertised r (radius) for Circle() must not be used as a radius but as a diameter at the current state of the codebase. see : https://github.com/ajstarks/openvg/blob/2b32039b3a540bb41f3d88460342700e2e04b5a7/libshapes.c#L608-L619

Please adapt the documentation to reflect this behaviour or adapt the code.

Thank you

ajstarks commented 4 years ago

fixed.