Jeremy O. - Graffittiño

De Casiopea


TítuloGraffittiño
Tipo de ProyectoProyecto de Curso
Palabras Clavetarea 4
Período2012-
AsignaturaTaller Inicial 1ª y 2ª Etapa,
Del CursoImagen Escrita 2012,
CarrerasArquitectura
Alumno(s)Jeremy Opazo
ProfesorHerbert 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); }

}