xxxxxxxxxx
shape_max_size = 90;
shape_min_size = 50;
gap = 10;
min_color = 100;
max_color = 255;
min_offset = 0;
max_offset = 1.5 * gap;
function setup() {
createCanvas(800, 800);
background(245, 245, 245);
strokeWeight(0);
runs = 0;
while(runs<2){
x = 0;
while (x < 800) {
y = 0;
while (y < 800) {
r = map(random(), 0, 1, min_color, max_color);
g = map(random(), 0, 1, min_color, max_color);
b = map(random(), 0, 1, min_color, max_color);
a = map(random(), 0, 1, 20, 200);
c = color(r, g, b, a);
fill(c);
w = map(random(), 0, 1, shape_min_size, shape_max_size);
h = map(random(), 0, 1, shape_min_size, shape_max_size);
offset_x = map(random(), 0, 1, min_offset, max_offset);
offset_y = map(random(), 0, 1, min_offset, max_offset);
rect(x + offset_x, y + offset_y, w, h);
y += (shape_max_size + gap);;
}
x += (shape_max_size + gap);
}
runs += 1;
}
}
function draw() {}