Sudha247 / ocaml-joy

MIT License
22 stars 14 forks source link

Ellipse rotation #84

Closed FayCarsons closed 7 months ago

FayCarsons commented 7 months ago

Posting WIP ellipse rotation as requested. Added a 'rot' field to the ellipse record type, to which Transform.rotate adds its degrees arg, mod 360. Currently, the center is translated, I believe because Joy's (0,0) is (0.5, 0.5) in Cairo's coordinate system.

Attached is the current result of iteratively rotating an ellipse at (0,0).

ellipse_rotation