Mil Lineas Interactivas

De Casiopea



TítuloMil Lineas Interacción
AsignaturaImagen Escrita
Del CursoImagen Escrita 2017
2
Alumno(s)Isadora Aubel

<processingjs> float margin=100; float spx, spy;

void setup() {

 size(500, 500);
 background(255);
 stroke(#F55E84);
 frameRate(60);

}

float xcor = 300, ycor = 250; int spacing=30; int len=2;

void draw() {

 background(255);
 for (int x=10; x <=490; x +=spacing) {
   for (int y=10; y<=450; y+=spacing) {
     line(x, mouseY, mouseX, y+len);
   }
 }

} </processingjs>