summaryrefslogtreecommitdiff
path: root/Year_2/IandM/moons/moons.pde
blob: 7fe6efaed896aaa4eaaedb963512f056caff1eac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
size(500, 500);
background(255);
noStroke();
fill(0);

int k = 0;
for(int y = 0; y < width; y+=50) {
  k = (int)lerp(0, 255, y);
  for(int x = 0; x < height; x+=50) {
    fill(k);
    rect(x, y, 50, 50);
    k+=5;
  }
}