Rotazione
La figura può essere ruotata tramite il parametro rotate (rot, r)

Il quadrato è utilizzato per evidenziare la rotazione dei triangoli.
Il centro del triangolo è sempre sul lato.
startshape RUOTARE
rule RUOTARE
{
SQUARE { x 1.5 y 1.5 size 3 b 0.5 }
TRIANGOLI{}
}
rule TRIANGOLI
{
TRIANGOLO{ }
TRIANGOLO{ x +1 rotate +30 }
TRIANGOLO{ x +2 rotate +60 }
TRIANGOLO{ x +3 rotate +90 }
TRIANGOLO{ x +3 y +1 rotate +120 }
TRIANGOLO{ x +3 y +2 rotate +150 }
TRIANGOLO{ x +3 y +3 rotate +180 }
TRIANGOLO{ y +1 rotate -30 }
TRIANGOLO{ y +2 rotate -60 }
TRIANGOLO{ y +3 rotate -90 }
TRIANGOLO{ x +1 y +3 rotate -120 }
TRIANGOLO{ x +2 y +3 rotate -150 }
}
rule TRIANGOLO { TRIANGLE { size .66 1}
rule RUOTARE
{
SQUARE { x 1.5 y 1.5 size 3 b 0.5 }
TRIANGOLI{}
}
rule TRIANGOLI
{
TRIANGOLO{ }
TRIANGOLO{ x +1 rotate +30 }
TRIANGOLO{ x +2 rotate +60 }
TRIANGOLO{ x +3 rotate +90 }
TRIANGOLO{ x +3 y +1 rotate +120 }
TRIANGOLO{ x +3 y +2 rotate +150 }
TRIANGOLO{ x +3 y +3 rotate +180 }
TRIANGOLO{ y +1 rotate -30 }
TRIANGOLO{ y +2 rotate -60 }
TRIANGOLO{ y +3 rotate -90 }
TRIANGOLO{ x +1 y +3 rotate -120 }
TRIANGOLO{ x +2 y +3 rotate -150 }
}
rule TRIANGOLO { TRIANGLE { size .66 1}