/** exploration of the HSB-Color-Space by guru */ void setup() { size(600,600); colorMode(HSB); } void draw() { noStroke(); randomSeed( 0 ); float baseHue = map( mouseY, 0, height, 5, 200); for( int x = 0; x < 10; x++) { for( int y = 0; y < 10; y++) { fill( baseHue+random(-5,5),random(128,255),200); beginShape(); vertex( x * 60, y * 60 ); vertex( (x+1)*60, y*60); vertex( (x+1)*60, (y+1)*60); endShape(); fill( baseHue +random(-5,5),random(128,255),map( mouseX, 0, width,150,255)); beginShape(); vertex( x * 60, y * 60 ); vertex( x*60, (y+1)*60); vertex( (x+1)*60, (y+1)*60); endShape(); } } }