Simple grid filled with one base color, fade its brightness. Using p5js. View it at: http://osadsanu.github.io/colorGrid/
Check the code on sketch.js
file.
If you wish to use that experiment only modify this line #54:
grid.push(new Box(x*size,y*size,size,209,63,random(40,50),random(-1.5,1.5)));
The function signature is:
Box (x,y,size,H,S,B,vel)
Stands for:
- X: x position.
- Y: y position.
- Size: the size of each box.
- H: Hue (remember HSB colors).
- S: Saturation.
- B: Brightness.
- Vel: the speed of change for each box.