xxxxxxxxxx
31
function setup() {
createCanvas(400, 400);
angleMode(DEGREES);
}
function draw() {
background(220);//gray
strokeWeight(5);
point(50,100);
line(100,100, 100,200);
triangle(200,100, 250,200, 150,200); //this is a triangle
circle(250,250, 50);//secret message
//arc(x, y, w, h, start, stop,)
noFill();
arc(100,250, 50,50, 0,180);
rect()
strokeWeight(5);
point(250,100);
line(200,250, 200,300);
triangle(350,250, 350,350, 250,350); //this is a triangle
circle(150,100, 50);//secret message
//arc(x, y, w, h, start, stop,)
noFill();
arc(300,150, 50,50, 0,180);
rect();
console.log(mouseX, mouseY);
}