void setup(){ size(500, 500); }
void draw(){ for (int i = 0; i< 500;i+=100){ for (int z = 0; z< 500;z+=100){ strokeWeight(4); stroke(0,255,0); line(10+i, 10+z, 100+i, 100+z); stroke(255,255,0); line(10+i, 100+z, 100+i, 10+z); stroke(255,0,0); line(50+i, 0+z, 50+i, 100+z); }
} }
void keyPressed(){ if (key == 's'){ save("saveimage.png"); } }