Ask coding questions

← Back to all posts
HOWW
INCOGNITO001

SO when i tried to use ellipse() command in HTML CSS and JS repl, it yelled at me it was all like grr and i was all like ahh so... could you help me get graphics for JS?

Voters
INCOGNITO001
Comments
hotnewtop
tussiez

ellipse is a function available only when you use the p5.js library. This is not available in vanilla JS.

Coder100

you need to add a p5.js script.
ellipse() isn't js, it is p5.js. It requires an implementation.

https://repl.it/@Coder100/LimpingBrownScales-Coder100-and-mark-the-correct#script.js

here is a working repl, and a nice template for that as well.

Kookiez

Well, you should've used processing.js.

How do you make one?

Just click the + in the nav bar and search "processing java" or something like that.

Here is a picture:


RYANTADIPARTHI

are you using p5.js?

INCOGNITO001

@RYANTADIPARTHI uh it said script.js so i clikced on it and put ellipse(200, 200, 200, 200)

INCOGNITO001

@RYANTADIPARTHI so dunno if that answers your question

RYANTADIPARTHI

@gjirtngisnt so, ellipse() works in p5.js, i don't know if you have that repl or a normal js repl.