function setup() {
createCanvas(200, 200);
background(220, 0, 0);
ellipse(100, 100, 50, 50) /* 100, 100 is the coordinates, 50, 50 is the radius of the ellipse */
}
function draw() {
background(220, 0, 0, 0)
fill(255, 200, 200) /* RGB color of ellipse */
stroke(0, 255, 200) /* the color of the outline of the circle */
ellipse(mouseX, mouseY, 50, 50) /* drawing repeating ellipses*/
}
class=”p5-embed” makes thing and code show up
data-width=”x” sets size of canvas to make sure it fits