Draw an Ellipse

Use P5.js to draw an Ellipse

Use this code to add your name

textSize(32);

text('Your Name', 10, 30);

Code for drawing the ellipse


function setup() {

}

function draw() {

ellipse(50, 50, 80, 80);

}

This line of code means "draw an ellipse, with the center 50 pixels over from the left and 50 pixels down from the top, with a width and height of 80 pixels".

Change the code to "draw an ellipse, with the center 100 pixels over from the left and 100 pixels down from the top, with a width 150 and height of 80 pixels".