1.000 rainbow line
De Casiopea
| Título | 1.000 rainbow lines |
|---|---|
| Asignatura | Imagen Escrita |
| Del Curso | Imagen Escrita 2017 |
| Nº | 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);
}
}
}