Mil Lineas en Movimiento

De Casiopea



Títulotrama en Movimiento
AsignaturaImagen Escrita
Del CursoImagen Escrita 2017
3
Alumno(s)Felipe Fuentes

<processingjs> int x, y, x1, y1;

void setup() {

 size(500, 500);
 background(255);

}

void draw() {

 background(255);
 strokeWeight(mouseX/100);
 
 
 for(x=0; x <= width; x+= 10) {
   line(x, 0, mouseY, mouseX);
   stroke(0, mouseY+x, mouseX/2);
 }
  for(y=0; y <= height; y+= 10) {
   line(0, y, mouseY, mouseX);
   stroke(mouseX, 0, mouseY);
 }
  for(x1=0; x1 <= width; x1+= 10) {
   line(x1, 500, mouseY, mouseX);
   stroke(mouseY, 0, mouseX);
 }
  for(y1=0; y1 <= height; y1+= 10) {
   line(500, y1, mouseY, mouseX);
   stroke(y1, mouseY, mouseY-y1); 
 }

stroke(255); strokeWeight(5); ellipse(mouseX, mouseY, 100, 100); noFill();

strokeWeight(10); rect(10, 10, 480, 480); noFill(); } </processingjs>