TypeError: ctx.ellipse is not a function #268
-
this is working ctx.fillRect(x - 50, y - 50, 100, 100);
ctx.arc(x, y, 50, 0, Math.PI + (Math.PI * 2) / 2, 3 % 2 == 1); this is not working ctx.ellipse(x, y, 50, 50, Math.PI / 4, 0, 2 * Math.PI); giving an error TypeError: ctx.ellipse is not a function. (In 'ctx.ellipse(x, y, 50, 50, Math.PI / 4, 0, 2 * Math.PI)', 'ctx.ellipse' is undefined) I'm working on Adroid. |
Beta Was this translation helpful? Give feedback.
Answered by
iddan
May 16, 2023
Replies: 2 comments
-
For me it is also needed to draw ellipses. Would be great if it would be supported in future. For now, you can use a polyfill such as: https://gist.github.com/floriancargoet/20cede87a76b4073177f |
Beta Was this translation helpful? Give feedback.
0 replies
-
Fixed in [email protected] |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
iddan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Fixed in [email protected]