xxxxxxxxxx
27
function setup() {
createCanvas(400, 400);
}
function draw() {
background(150);
// Make a red circle with a thick outline
fill("red");
stroke("black");
strokeWeight(15);
circle(width / 2, height/2, 100);
// Make a blue square with no outline
fill("blue");
noStroke();
//rect(x, y, width, height)
rect(40, 40, 200, 50);
// Make a green ellipse
//fill("green"); fill(r, g, b); // 0 - 255
let ellipseWidth = 40;
fill(0, 255, 0);
ellipse(300, 300, ellipseWidth, 80);
ellipse(200, 200, ellipseWidth / 2, 80);
}