Código original:
void setup() {
size(640, 360);
}
void draw() {
background(127);
noStroke();
for (int i = 0; i < height; i += 20) {
fill(129, 206, 15);
rect(0, i, width, 10);
fill(255);
rect(i, 0, 10, height);
}
}
Resultado:Código alterado:
void setup() {
size(800, 600);
}
void draw() {
background(0);
noStroke();
for (int i = 0; i < height; i += 50) {
fill(0, 193, 56);
rect(0, i, width, 10);
fill(59, 84, 165);
rect(i, 0, 10, height);
}
}
Resultado:


Nenhum comentário:
Postar um comentário