2º exercício
Segunda experimentação:
«Uma tautologia / sempre na expectativa de uma heterologia»

size(200, 600);
background(0);
//TAUTO
PFont Main = loadFont("BebasNeueBold-55.vlw");
fill(225);
textFont(Main);
for(int y=30; y<=470; y=y+40){
text("TAUTOLOGIA", 0, y);
}
push();
textSize(49.4);
text("HETEROLOGIA", 0, 505);
pop();
for(int y=545; y<=625; y=y+40){
text("TAUTOLOGIA", 0, y);
}
fill(0);
noStroke();
int n = 25;
int spacing = height/n;
push();
for (int j=0; j<n; j=j+1) {
push();
for (int i=0; i<n; i=i+1) {
circle (5+(i*spacing), 10+(j*spacing), 25);
spacing = spacing+2;
scale (0.55);
}
pop();
spacing = spacing-30;
scale (2);
}
pop();
fill(225);
noStroke();
int m = 15;
int spacingB = width/m;
for (int j=1; j<m; j=j+1) {
push();
for (int i=0; i<m; i=i+1) {
circle (7+(i*spacingB), 50+(j*spacingB), 10);
scale (2);
}
pop();
scale (2.45);
}
save("tautoheterologia.png");
size (200,600);
background(0);
for (int y = 70; y <= 470; y = y + 40) {
text("TAUTOLOGIA", 0, y);
}
GostarGostar