Mariana Oyanedel: mil líneas y interactividad

De Casiopea



TítuloMariana Oyanedel: mil líneas e interactividad
AsignaturaImagen Escrita
Del CursoImagen Escrita 2017
1,2
Alumno(s)Mariana Oyanedel


<processingjs> int x, y, w, z;

void setup() {

 size (500, 500);
 smooth ();
 frameRate (30);

}

void draw() {

 background(255, 200, 200, 255);
 fill(frameCount/2);
 stroke(255);
 for (int x = 0; x < width; x = x +5) {
   line(x, 0, mouseX, mouseY);
 }
 for (int y=0; y < height; y = y + 5) {
   line (0, y, mouseX, mouseY);
 }

}

 void mousePressed() {
 background(255);
}

</processingjs>