void setup() {
size (500, 500);
background (#FFFFFF);
}
void draw() {
//padrão
frameRate(4);
fill (random(100),random(100),random(255));
noStroke ();
int n = 27;
int spacing = width / n;
int j = 0; {
while (j < n) {
int i = 0;
while (i < n) {
circle (13 + (i* spacing), 13 + ( j * spacing), 20);
i = i +1;
}
j = j + 1;
}
}
//retangulo
fill (#000000);
noStroke ();
rectMode (CENTER);
rect(width/2,height/2 – 80, 300, 150);
//texto
PFont title_font = createFont (“Avenir Next Rounded Std”, 30);
fill (#FFFFFF);
textAlign (CENTER);
textFont (title_font);
textSize (100);
text(“sobre”, 250, 200);
fill (#FFFFFF);
noStroke ();
textSize (125);
text (“tudo”, 258, 290);
if(mousePressed) {
//retangulo
fill (#FFFFFF);
noStroke ();
rect(width/2,height/2 – 30,300, 300);
fill (#000000);
noStroke ();
//texto
fill (#000000);
textAlign (CENTER);
textFont (title_font);
textSize (100);
text(“sobre”, 250, 200);
fill (#000000);
noStroke ();
textSize (125);
text (“tudo”, 258, 290);
}
}