Add completed harmonized color brick wall

This commit is contained in:
Lev
2021-07-28 01:46:49 -05:00
parent cd958becac
commit a2e844ddf5
3 changed files with 41 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
let color1 = 0;
function setup() {
createCanvas(720, 400);
colorMode(HSB);
noStroke();
//stroke(0);
let hueStart = 100;
let variation = 5;
let brickW = 72;
let brickH = 40;
for (let x=0; x<width; x+=brickW) {
for (let y=0; y<height; y+=brickH) {
fill(hueStart + random(-variation, variation), random(80, 100), random(80, 100));
rect(x, y, brickW, brickH);
}
}
}
function draw() {
}