Jeremy O. - Graffittiño
Título | Graffittiño |
---|---|
Tipo de Proyecto | Proyecto de Curso |
Palabras Clave | tarea 4 |
Período | 2012- |
Asignatura | Taller Inicial 1ª y 2ª Etapa, |
Del Curso | Imagen Escrita 2012, |
Carreras | Arquitectura |
Alumno(s) | Jeremy Opazo |
Profesor | Herbert Spencer |
float[][] coords; int numDots = 1060; float c = 0.042; color c1 = color(128,128,128);
void setup() {
size(700, 700);
coords = new float[numDots][2];
for (int i = 0; i < 300;i++){ coords[i][0] = random(width); coords[i][1] = random(height); smooth();
background(#444444); } }
void draw() {
for (int i = 0; i < 230; i++){ int next = (i + 1) % 230;
float difx = coords[i][0] - coords[next][0]; float dify = coords[i][1] - coords[next][1];
float nx = coords[i][0] -= difx * c; float ny = coords[i][1] -= dify * c;
stroke(3, 22);
stroke(c1); line(coords[i][0], coords[i][1], nx, ny); } }
void keyPressed() {
// si presiono 'z' dibuja en azul
if (key == 'z') {
c1=color(#0000ff); stroke(c1);
} // si presiono 'x' dibuja en amarillo if (key == 'x') {
c1=color(#ffff00); stroke(c1);
}
if (key == ' ') {
// si preciono ESPACIO pongo un velo blanco sobre el dibujo
noStroke (); fill(8, 11); rect(66, width, height, 500); stroke(18, 20); }
}