Casas de Danilo
De Casiopea
Título | mis casas |
---|---|
Tipo de Proyecto | Proyecto de Curso |
Palabras Clave | tarea 7, Danilo Garrido |
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. |
Alumno(s) | Danilo Garrido |
Profesor | Herbert Spencer |
PFont tipografia; import processing.pdf.*; Figuras myFigure; void setup() { size(700,700); background(255); tipografia= createFont("arial",12); textFont (tipografia,12); smooth(); noLoop(); } void draw() { <pre><noWiki> fill(0); text("Danilo Garrido, Diseño",100,50); fill(255); myFigure = new Figuras(); this.myFigure.display(); this.myFigure.change(); } class Figuras { int countA; int countB; int countC; int countD; int countE; Figuras() { } void display(){ 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)); this.countD=round(random(0,7)); this.countE=round(random(0,67)); rect(x-20,y,35,17); rect(x-10,y,15,15); if(countA>1){ strokeWeight(2); triangle(x-20,y,x,y-10,x+20,y); strokeWeight(2); triangle(x+28,y,x+43,y-10,x+58,y); rect(x+33,y,20,20); } if(countA>30){ strokeWeight(2); triangle(x-20,y,x,y-10,x+20,y); strokeWeight(1); rect(x,y,12,12); rect(x,y-20,10,20); } if(countA>50){ strokeWeight(2); triangle(x-5,y,x,y-10,x+10,y); triangle(x-20,y,x,y-10,x+20,y); strokeWeight(2); rect(x+17,y+5,10,10); } if(countB>1){ triangle(x-20,y,x,y-10,x+20,y); strokeWeight(1); rect(x-10,y,20,20); } if(countB>4){ strokeWeight(1); triangle(x-20,y,x,y-10,x+20,y); strokeWeight(1); rect(x-10,y,10,10); rect(x+5,y,10,10); rect(x+5,y-2,10,20); } if(countB>8){ strokeWeight(1); triangle(x-20,y,x,y-10,x+20,y); strokeWeight(1); rect(x,y-15,12,32); } if(countC>1){ strokeWeight(3); triangle(x-20,y,x,y-10,x+20,y); strokeWeight(2); rect(x,y,20,20); rect(x,y,20,20); } if(countC>2){ strokeWeight(2); triangle(x-20,y,x,y-10,x+20,y); strokeWeight(1); rect(x+5,y,20,20); rect(x-5,y,20,20); } if(countC>4){ strokeWeight(3); triangle(x-20,y,x,y-10,x+20,y); strokeWeight(2); rect(x+5,y-7,5,20); ; } if(countD>1){ triangle(x-20,y,x,y-10,x+20,y); strokeWeight(2); rect(x+20,y,5,18); } if(countD>5){ strokeWeight(3); triangle(x-20,y,x,y-10,x+20,y); strokeWeight(2); rect(x-10,y,12,12); } } } } void change(){ this.countA=round(random(0,100)); this.countB=round(random(0,10)); this.countC=round(random(0,6)); this.countD=round(random(0,7)); this.countE=round(random(0,67)); countA++; countB++; countC++; countD++; countE++; } }