xxxxxxxxxx
31
//Color Haze
//Created by Mirette Dahab
//December 31st, 2024
//independant work
function setup() {
createCanvas(400, 400);
colorMode(HSB, 360, 100, 15);
}
let noiseOffset = 0;
function draw() {
background(220);
noiseOffset += 0.008;
for (let i = 1; i < width+200; i += 10 + sin(noiseOffset) * 6) {
for (let j = 1; j < height+200; j += 15 + cos(noiseOffset) * 4) {
// stroke(0);
strokeWeight(random(1,1.5));
let n = noise(i * 0.01, j * 0.01, noiseOffset);
let hueValue = (noiseOffset * 15 + n * 300) % 360;
stroke(hueValue, 90 , 10);
line(i,-j,i+10,j+3);
line(i,j,i+10,j);
strokeWeight(random(0,0.8));
line(-i-700,-j-700,i,j);
}
}
}