@darrion.kuhn
In p5.js, you can change the radius of a drawn ellipse by using the ellipse() function and passing in different values for the width and height parameters. Here's an example of how you can change the radius of a drawn ellipse:
1 2 3 |
function setup() {
createCanvas(400, 400);
}
|
1 2 3 4 |
function draw() {
background(220);
ellipse(200, 200, 100, 80); // x, y, width, height
}
|
In this example, the width and height parameters of the ellipse() function determine the radius of the ellipse. You can change these values to modify the size of the ellipse.