Camila Herman: Tarea arbol
De Casiopea
Título | Camila Herman: Tarea arbol |
---|---|
Carreras | 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. |
Título | Camila Herman: Tarea Random y For |
---|
void setup() {
size(600, 800); smooth(); background(73, 140, 232);
}
void drawTree(float x, float y, float big, int levels) {
pushMatrix(); { translate(x, y); line(70, -big/6, -big/6, -big); line(70, -big/6, 0, -big); line(70, -big/6, big/6, -big); line(70, 0, 0, -big/6);
if (levels > 0) { stroke(random(3, 50), random(70, 300),random(4000, 10)); drawTree(-big/2, -big, big*(random(.1, 4)), levels - 1); drawTree(big/2, -big, big*(random(.0, 3)), levels - 1); stroke(random(100,250), random(50, 93), 0); drawTree(0, -big*(random(.8, 1)), big*0.8, levels - 3 ); } } popMatrix();
}
void draw() { }
void mouseReleased() {
drawTree(mouseX, mouseY, 4, round(7)); saveFrame("arbol.jpg");
}