1.000 rainbow line

De Casiopea
Revisión del 14:54 17 abr 2017 de Hspencer (discusión | contribs.)
(difs.) ← Revisión anterior | Revisión actual (difs.) | Revisión siguiente → (difs.)



Título1.000 rainbow lines
AsignaturaImagen Escrita
Del CursoImagen Escrita 2017
1
Alumno(s)Felipe Fuentes

<processingjs>

void setup() {

 size(500, 500);

}

void draw() {

 background(255);
 strokeWeight(2);
 
   for(int y = 15; y <= height-15; y*= 1.1){
     for(int x = 15; x <= width-15; x+= 15){
       stroke(x, y-200, x-y);
       line(x, y, x+12, y+10);
     }
   }

} </processingjs>

void setup() {
  size(500, 500);
}
  
void draw() {
  background(255);
  strokeWeight(2);
  
    for(int y = 15; y <= height-15; y*= 1.1){
      for(int x = 15; x <= width-15; x+= 15){
        stroke(x, y-200, x-y);
        line(x, y, x+12, y+10);
      }
    }
}