Sebastián González Tarea Insectario

De Casiopea
Tarea Insectario


TítuloTarea Insectario
Tipo de ProyectoProyecto de Taller, Proyecto de Curso
Palabras Claveinsectario, tarea 7
Período2012-2012
AsignaturaImagen Escrita 2012,
Del CursoTaller Inicial Común 1ª y 2ª Etapa,
CarrerasDiseñ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
ProfesorHerbert 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++;
    
   
  
  }

}