## Posted By

Homitsu on 06/03/10

# Tre Tetraktis

/ Published in: Processing

Sketch realizzato nel 2010 da Valentina Rachiele e Davide Homitsu Riboli per gli studenti ISIA Urbino nell'ambito del corso "Matematica per il Design.

`//Creo l'ambientesize(400,400); //La linea successiva mi serve solo nel terzo caso//float varia = width/8; /* //START TETRAKTIS PER VALORI ASSOLUTI triangle(0,400,50,300,100,400);triangle(100,400,150,300,200,400);triangle(200,400,250,300,300,400);triangle(300,400,350,300,400,400); triangle(50,300,100,200,150,300);triangle(150,300,200,200,250,300);triangle(250,300,300,200,350,300); triangle(100,200,150,100,200,200);triangle(200,200,250,100,300,200); triangle(150,100,200,0,250,100); //END TETRAKTIS PER VALORI ASSOLUTI */ /* //START TETRAKTIS PER VALORI GESTITI TRAMITE VARIABILE DI SISTEMA// Funziona bene solo su ambienti a dimensioni divisibili x 8 // triangle(0,height,width/8,(height/4)*3,width/4,height);triangle(width/4,height,(width/8)*3,(height/4)*3,width/2,height);triangle(width/2,height,(width/8)*5,(height/4)*3,(width/8)*6,height);triangle((width/8)*6,height,(width/8)*7,(height/4)*3,width,height); triangle(width/8,(height/8)*6,width/4,height/2,(width/8)*3,(height/8)*6);triangle((width/8)*3,(height/8)*6,width/2,height/2,(width/8)*5,(height/8)*6);triangle((width/8)*5,(height/8)*6,(width/8)*6,height/2,(width/8)*7,(height/8)*6); triangle(width/4,height/2,(width/8)*3,height/4,width/2,height/2);triangle(width/2,height/2,(width/8)*5,height/4,(width/8)*6,height/2); triangle((width/8)*3,height/4,width/2,0,(width/8)*5,height/4); //END TETRAKTIS PER VALORI VALORI GESTITI TRAMITE VARIABILE DI SISTEMA*/ /*//START TETRAKTIS PER VALORI GESTITI TRAMITE VARIABILE DICHIARATA triangle(0,height,varia,varia*6,varia*2,height);triangle(varia*2,height,varia*3,varia*6,varia*4,height);triangle(varia*4,height,varia*5,varia*6,varia*6,height);triangle(varia*6,height,varia*7,varia*6,width,height); triangle(varia,varia*6,varia*2,varia*4,varia*3,varia*6);triangle(varia*3,varia*6,varia*4,varia*4,varia*5,varia*6);triangle(varia*5,varia*6,varia*6,varia*4,varia*7,varia*6); triangle(varia*2,varia*4,varia*3,varia*2,varia*4,varia*4);triangle(varia*4,varia*4,varia*5,varia*2,varia*6,varia*4); triangle(varia*3,varia*2,varia*4,0,varia*5,varia*2); //END TETRAKTIS PER VALORI GESTITI TRAMITE VARIABILE DICHIARATA */`