You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Basically ellipseMode(CORNERS) only seems to work, if the first point given is top left, and the coordinates are positive.
I've made the sketch below to test out different configurations of first point (P1) and second point (P2), as well as positive and negative coordinates. This is the result:
7 of the 16 test cases crash p5 (IndexError), 8 produce a wrong ellipse rendering, only 1 works as intended.
This also affects arc(), since it uses the same rendering code.
Most appropriate sub-area of p5.js?
p5.js version
1.10.0
Web browser and version
Safari 18.0
Operating system
maxOS 14.7
Steps to reproduce this
Basically
ellipseMode(CORNERS)
only seems to work, if the first point given is top left, and the coordinates are positive.I've made the sketch below to test out different configurations of first point (P1) and second point (P2), as well as positive and negative coordinates. This is the result:
7 of the 16 test cases crash p5 (
IndexError
), 8 produce a wrong ellipse rendering, only 1 works as intended.This also affects
arc()
, since it uses the same rendering code.Here is a PR to address this issue: #7290
Steps:
Snippet:
The text was updated successfully, but these errors were encountered: