Slide 26
Slide 26 text
ղྫ
‣ 13*/5GPS1SPDFTTJOH
size(800, 600);
int step = 20;
for (int y = 0; y < height; y += step) {
for (int x = 0; x < width; x += step) {
if (random(1) > 0.5) {
line(x, y, x+step, y+step);
}
else {
line(x, y+step, x+step, y);
}
}
}