Sudha247 / ocaml-joy

MIT License
21 stars 14 forks source link

Rectangle doesn't center correctly #92

Closed nikochiko closed 6 months ago

nikochiko commented 6 months ago

The drawing logic for a rectangle is correct, and this shifts the center.

e.g. this was rendered for a rectangle with w = 100 and h = 200:

image

The rectangle has the correct dimensions but isn't centered.