Skip to content
Sign upLog in
← Back to Community

HOWW

Profile icon
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
Profile icon
INCOGNITO001
Comments
hotnewtop
Profile icon
tussiez

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

Profile icon
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.

Profile icon
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:

image

Profile icon
RYANTADIPARTHI

are you using p5.js?

Profile icon
INCOGNITO001

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

Profile icon
INCOGNITO001

@RYANTADIPARTHI
so dunno if that answers your question

Profile icon
RYANTADIPARTHI

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