Maria Jesus Martinez: tarea 3
De Casiopea
Título | Maria Jesus Martinez: Tarea processing 3 |
---|---|
Tipo de Proyecto | Proyecto de Curso |
Palabras Clave | Tarea 3 |
Período | 2012- |
Del Curso | Imagen Escrita 2012, |
Carreras | Diseño Gráfico"Diseño Gráfico" is not in the list (Arquitectura, Diseño, Magíster, Otra) of allowed values for the "Carreras Relacionadas" property., Diseño Industrial"Diseño Industrial" is not in the list (Arquitectura, Diseño, Magíster, Otra) of allowed values for the "Carreras Relacionadas" property. |
Alumno(s) | Maria Jesus Martinez |
Profesor | Herbert 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; } }