pythonarcade / arcade

Easy to use Python library for creating 2D arcade games.
http://arcade.academy
Other
1.72k stars 328 forks source link

TopLeft coordinates when drawing rectangles #996

Closed pyweeker closed 3 years ago

pyweeker commented 3 years ago

Hello, it is not always handy to draw from x,y centers . Is it possible to get 4 angles or only topleft from calling arcade.draw_rectangle_filled for example ?

einarf commented 3 years ago

There are version using xywh : https://api.arcade.academy/en/latest/api/drawing_primitives.html

pyweeker commented 3 years ago

thank you Einar

Le jeu. 7 oct. 2021 à 10:18, Einar Forselv @.***> a écrit :

There are version using xywh : https://api.arcade.academy/en/latest/api/drawing_primitives.html

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/pythonarcade/arcade/issues/996#issuecomment-937562845, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATQR4N6MUK2JBBQ3RTTOBZ3UFVJUDANCNFSM5FQU5ATQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

einarf commented 3 years ago

Closing this. Be free to reopen if the issue is not resolved.