xxxxxxxxxx
103
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,0);
vertex(width,height);
vertex(0,height);
endShape();
beginShape();
noStroke();
fill(249,246,238);
vertex(width,height/2);
vertex(width,height);
vertex(width/3,height);
endShape();
translate(width/2, height/2);
push();
noStroke();
fill(249,246,238);
quad(r,rr,yy,-150,w,130,rr,y);
pop();
push();
noStroke();
fill(a,b,c);
triangle(q, -170, x, -150, sin(frameCount*1)*w, qq);
pop();
push();
noStroke();
fill(c,b,a);
triangle(r,rr,q,sin(frameCount*1)*ww,rr,y);
pop();
}