Leninn G 1° ARQ 2012 locura matzima

De Casiopea


TítuloLocura matzima
Tipo de ProyectoProyecto de Curso
Palabras Clavetarea 6
Período2012-2012
AsignaturaImagen Escrita 2012,
Del CursoImagen Escrita 2012,
CarrerasArquitectura
Alumno(s)Leninn Gustainsson
ProfesorHerbert Spencer

int strokeSize = 25; boolean first = true; float x; float y; float xCenter = 250; float yCenter = 250; float radius = 100; void setup() {

 size(10000,700);
 background(15);
 frameRate(20);

}

void draw() {

 fill(52,10);
 rect(0,0,width,height);
 makeLines();

}

void makeLines() {

 strokeWeight(random(10));
 x = (cos(radians(random(360))) * radius) + xCenter;
 y = (sin(radians(random(360))) * radius) + yCenter;
 if(mousePressed == true){
   x = mouseX;
   y = mouseY;
 }
// strokeWeight(strokeSize);
 stroke(#256C36);
 line(x, y, xCenter+2, yCenter+2);
 xCenter = x;
 yCenter = y;

}