function setup() {
  createCanvas(600, 600);
  colorMode(HSB, 360, 100, 100, 100);
  noStroke();

  moduleColorBackground = color(0, 0, 0, moduleAlphaBackground);
  moduleColorForeground = color(0, 0, 100, moduleAlphaForeground);

  backgroundColor = color(0, 0, 100);
}
changing module color and positions in a grid

MOUSE
position x          : offset x
position y          : offset y
left click          : random position

KEYS
1-3                 : different sets of colors
0                   : default
arrow up/down       : background module size
arrow left/right    : foreground module size
s                   : save png