Drawing
let x = 20;
let y = 20;
let diameter = 600;
function setup() {
createCanvas(1280, 720);
background(0, 0, 102);
noStroke();
}
function draw() {
background(0, 0, 102);
fill(255);
ellipse(x, y, diameter, diameter);
fill(0, 51, 0);
rect(0, 670, 1280, 55);
fill(0, 51, 0);
triangle(0, 670, 200, 700, 80, 0);
fill(153, 76, 0);
triangle(1000, 1100, 400, 1000, 600, 500);
if (mouseIsPressed) {
fill(255, 178, 102);
} else {
fill(102, 53, 0);
}
triangle(800, 1090, 400, 1000, 600, 600);
}
Comments
Post a Comment