Maria Jesus Martinez: tarea 3

De Casiopea


04.png


TítuloMaria Jesus Martinez: Tarea processing 3
Tipo de ProyectoProyecto de Curso
Palabras ClaveTarea 3
Período2012-
Del CursoImagen Escrita 2012
CarrerasDiseño Gráfico, Diseño Industrial
Alumno(s)Maria Jesus Martinez
ProfesorHerbert Spencer
 PFont tipografia;
int a;
int x=round(random(-100,100));
int y= round(random(-50,50));

void setup(){
size(700,700);
smooth();
tipografia= createFont("arial",12);
  textFont (tipografia,40);

a=((y*4)+(30-x))/2;
}
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);
  }
}
void draw(){

background(0);
strokeWeight(1);
  Grilla(12,12);
  text("a=((y*4)+(30-x))/2;",200,100);
noFill();
stroke(255);
strokeWeight(3);
rect(175,175,350,350);

line(0,350,700,350);
line(350,0,350,700);
strokeWeight(5);
stroke(#9312A5);
ellipse(350,350,a,10);
strokeWeight(4);
stroke(#26E0B0);
ellipse(350,350,a,100);
stroke(#C9CE49);
ellipse(350,350,a,a);

a++;
x++;
y++;
if(a>350){
  a=-a;
}

    }