Sebastián González Tarea Insectario
De Casiopea
Título | Tarea Insectario |
---|---|
Tipo de Proyecto | Proyecto de Taller, Proyecto de Curso |
Palabras Clave | insectario, tarea 7 |
Período | 2012-2012 |
Asignatura | Imagen Escrita 2012, |
Del Curso | Taller Inicial Común 1ª y 2ª Etapa, |
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) | Sebastián González |
Profesor | Herbert Spencer |
import processing.pdf.*; Pelota bola;
void setup() { size(700,700,PDF,"MisPelotas.pdf"); background(255);
smooth();
noLoop();
} void draw() {
bola = new Pelota ();
this.bola.Comienza(); this.bola.change(); println("Listo. presiona cmd + K para ver el PDF");
exit();
}
class Pelota {
PFont tipografia;
int countA;
int countB;
int countC;
int c;
Pelota () {
tipografia= createFont("arial",12); textFont (tipografia,12); } void Comienza(){
c=color(#D30F0F); for(int x=100;x<600;x=x+99){
for(int y=100;y<600;y=y+99){
this.countA=round(random(0107)); this.countB=round(random(0,10)); this.countC=round(random(0,6)); fill(0);
text("Sebastián González J, Diseño",100,50); fill(c);
ellipse(x+30,y-10,50,50);
ellipse(x-30,y-10,50,50); ellipse(x,y+10,50,50);
if(countA>1){ c=color(#29FCED); } if(countA>30){ c=color(#22645F); } if(countA>50){ c=color(#CDD324); } if(countB>1){ c=color(#B3B915); } if(countB>4){ c=color(#327CB7); } if(countB>8){ c=color(#982828); } if(countC>1){ c=color(#83C2F5); } if(countC>2){ c=color(#B0B9C1); } if(countC>4){ c=color(#3CAA4D); } } }
}
void change(){ this.countA=round(random(0,100)); this.countB=round(random(0,10)); this.countC=round(random(0,6)); countA++; countB++; countC++; }
}