xxxxxxxxxx
35
function setup() {
createCanvas(400, 400);
rectMode(CENTER);
//Circle starts here
noStroke();
fill(255);
circle(200, 200, 60); //this is Circle
//Square starts here
stroke(255);
noFill();
strokeWeight(5);
square(100, 200, 60);
// Triangle starts here
stroke(0);
noFill();
strokeWeight(5);
triangle(300, 180, 330, 225, 270, 225);
}
function draw() {
background(255, 24, 116);
//Circle starts here
noStroke();
fill(255);
circle(mouseX, mouseY, 60);
}