xxxxxxxxxx
32
let a = 0;
let day = x+1;
function setup() {
createCanvas(400, 400);
angleMode(DEGREES);
background(250,100,56,100);
colorMode(HSB);
}
function draw() {
funkyShape(width/2,height/2,80,180);
//funkyShape(100,100,120,120);
a = a + 10;
if (mouseX >= 400 || mouseX <= 400)
;
}
function funkyShape(x,y,w,h) {
push();
translate(x,y);
rotate(a);
fill(55,150,150,.009);
stroke(20,20);
beginShape();
vertex(0,0);
vertex(w,10);
vertex(w/2,h);
vertex(5,h/2);
endShape(CLOSE);
pop();
}