Danilo y sus Circulos prismáticos

De Casiopea
circulos prismaticos



Títulocirculos prismaticos
Tipo de ProyectoProyecto de Curso
Palabras Clavetarea 3, Danilo Garrido, imagen escrita
Del CursoImagen Escrita 2012,
CarrerasDiseño Gráfico
Alumno(s)Danilo Garrido
ProfesorHerbert Spencer

trabajo


strokeWeight(10);
line(0,0,100,100);
line(400,0,300,100);
line(100,0,100,300);
line(300,0,300,300);

strokeWeight(15);
line(400,400,300,300);
line(0,400,100,300);

strokeWeight(5);
line(50,350,350,350);
line(100,300,300,300);
line(100,210,300,210);
line(200,300,200,400);
}}


void setup(){
  size(400,400);
  
  smooth();
}
void Grilla(int divsX, int divsY){
  stroke(200);
  float xSpacer = width/(float)divsX;
  float ySpacer = height/(float)divsY;
  
  for(float y= ySpacer; y <height; y += ySpacer){
  line(0,y,width,y);
  }
  for(float x= xSpacer; x <width; x += xSpacer){
    line(x,0,x,height);
  }
 }
  
 int b =2; 
int a=b++;
int c = (a*a)-10;
int x= c-a/(c-4*b);
int y= a+2*c/(c-a);
  void draw(){
    
     background(255);
    Grilla(8,8); 
    stroke(0);
    if( x > 100){
  x=-x;
}
if ( y > 50){
y=-y;
}
     
    if(mousePressed){
     line(0+x,200,400-x,200);
   line(200,0+x,200,400-x);
      
  stroke(0);
  strokeWeight(5);
ellipse(200,200,mouseY+x,mouseY+y);
ellipse(200,200,mouseY-x,mouseX-y);
ellipse(200,200,mouseX+x,mouseY+y);

strokeWeight(2);
stroke(0,150,200);
ellipse(100,100,mouseY+x,mouseY+y);
ellipse(100,100,mouseY-x,mouseX-y);
ellipse(100,100,mouseX+x,mouseY+y);

stroke(255,0,0);
strokeWeight(2);
ellipse(300,300,mouseY+x,mouseY+y);
ellipse(300,300,mouseY-x,mouseX-y);
ellipse(300,300,mouseX+x,mouseY+y);

stroke(0,200,0);
strokeWeight(2);
ellipse(100,300,mouseY+x,mouseY+y);
ellipse(100,300,mouseY-x,mouseX-y);
ellipse(100,300,mouseX+x,mouseY+y);

stroke(255,600,100);
stroke(2);
ellipse(300,100,mouseY+x,mouseY+y);
ellipse(300,100,mouseY-x,mouseX-y);
ellipse(300,100,mouseX+x,mouseY+y);


x++;
noFill();