xxxxxxxxxx
function setup() {
simple();
colorMode(HSB);
}
function draw() {
// this is a nested loop
repeat(100, 700, 10, 100, 500 ,10 , spot);
}
function spot(x,y) {
var hue = ((x + y)/ 2) % 360
var b = 70
var s = 90;
fill(hue, b, s);
circle(x,y,10);
}