8º CONTACTO
SETTINGS()
SETTINGS(): Se utilizar para definir size, smooth… para un boceto. Se ejecuta antes de hacer el boceto.
Ejemplo
int x = 0;
void settings() {
fullScreen(); //para que salga la pantalla en grande
}
void setup() {
background(0);
noStroke();
fill(102);
}
void draw() {
rect(x, height*0.2, 1, height*0.6);
x = x + 2;
}
No hay comentarios:
Publicar un comentario