LESSON 1 – CHAPTER 3

La ricorsione permette di creare una spirale.

Ad ogni passo il cerchio si sposta verso l’alto del 25% ruotando di 3° e riducendo la dimensione del 0.3%.

startshape CHAPTER3
shape      CHAPTER3
{
    SPIRALE []
}
shape      SPIRALE
{
    CIRCLE  [                       size  0.5   ]
    SPIRALE [ y +0.25  rotate +3.0  size +0.997 ]
}

Se il cerchio non viene disegnato al 50% l’immagine finale risulta più densa pur mantenendo la stessa struttura

startshape CHAPTER3
shape      CHAPTER3
{
    SPIRALE []
}
shape      SPIRALE
{
    CIRCLE  [ ]
    SPIRALE [ y +0.25  rotate +3.0  size   +0.997 ]
}

Lascia un commento