function setup() {
  createCanvas(800, 400);
  noStroke();
  colorMode(HSB, width, height, 100);
}
draw the color spectrum by moving the mouse

MOUSE
position x/y        : resolution

KEYS
s                   : save png