xxxxxxxxxx
function setup() {
createCanvas(windowWidth, windowHeight);
background(0);
noStroke()
}
function draw() {
colorMode(HSB)
for (let i = 0; i < width; i += 50) {
let h = map(i, 0, width, 0, 360)
for (let o = 0; o < height; o += 50) {
let r = random(-50, 50)
let r2 = random(0, 30)
let r3 = random(0, 60)
let clr = color((r+h + o + frameCount * 5) / 2 % 360, mouseY / 5, mouseX / 5)
clr.setAlpha(0.5)
fill(clr)
// ellipse(i, o, 10)
// rect(i, o, 30, 50)
rect(i, o, 10,10)
}
}
// fill(mouseX % 360, 100, 100)
// ellipse(mouseX, mouseY, 100, 100);
}