xxxxxxxxxx
let x;
let y;
let s;
let c;
let b;
function setup() {
createCanvas(400, 400);
background(255);
x = 0;
y = 400;
s = 50;
c = color(255,0,0);
b = color(0,0,255);
for(i=0; i<=150; i+=s){
fill(38, 52, 122);
triangle(i, y - 400, s, s,400, 400);
}
for(i=0; i<=150; i+=s){
fill(54, 90, 168);
triangle(i, y - 350, s, s,400, 400);
}
for(i=0; i<=150; i+=s){
fill(78, 119, 207);
triangle(i, y - 300, s, s,400, 400);
}
for(i=0; i<=150; i+=s){
fill(125, 161, 240);
triangle(i, y - 250, s, s,400, 400);
}
}
function draw() {
fill(255,255,255);
noStroke();
rect(0,0,50,50);
}