Mariana Oyanedel: mil líneas y interactividad
De Casiopea
Título | Mariana Oyanedel: mil líneas e interactividad |
---|---|
Asignatura | Imagen Escrita |
Del Curso | Imagen Escrita 2017 |
Nº | 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>