xxxxxxxxxx
116
let fr=2;
function setup() {
createCanvas(600,850);
frameRate(fr);
}
function draw() {
w = random(0,50);
ww = random(0,50);
x = random(50,100);
xx = random(50,100);
y = random(100,150);
yy = random(100,150);
z = random(150,200);
zz = random(150,200);
q = random(-50,0);
qq = random(-50,0);
r = random(-100,-50);
rr = random(-100,-50);
a = random(0,255);
b = random(0,255);
c = random(0,255);
background(249, 246, 238);
beginShape();
noStroke();
fill(a,b,c);
vertex(0, 0);
vertex(sin(frameCount*1), 0);
vertex(width/2, height/2);
vertex(0,height/2);
endShape();
beginShape();
noStroke();
fill(c,b,a);
vertex(width, height);
vertex(width, 0);
vertex(width/2, height/2);
vertex(0,height/2);
endShape();
beginShape();
noStroke();
fill(249,246,238);
vertex(width,height/2);
vertex(width,height);
vertex(width/3,height);
endShape();
beginShape();
noStroke();
fill(b,c,a);
vertex(0,height/2);
vertex(width,height);
vertex(0,height);
endShape();
translate(width/2, height/2);
push();
noStroke();
fill(249, 246, 238);
quad(rr,r,100,-150,y,yy,r,y);
pop();
push();
noStroke();
fill(a,b,c);
triangle(w, -170, y, -150, sin(frameCount*0)*w, q);
pop();
push();
noStroke();
fill(c,b,a);
triangle(0, sin(frameCount*0)*30, q, y, sin(frameCount*0)*x, y);
pop();
push();
noStroke();
fill(b,c,a);
triangle(50, sin(frameCount*0)*70, z, r, y, yy);
pop();
}