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 … Leggi tutto

LESSON 1 – CHAPTER 1

Le figure primitive SQUARE, CIRCLE e TRIANGLE con l’uso dei parametri x, y, size, brightness e rotate startshape CHAPTER1 shape CHAPTER1 { SQUARE [ y 2.5 ] // nero CIRCLE [ x -1.5 y 2.5 brightness 0.33 ] // più chiaro TRIANGLE [ x +1.5 y 2.5 brightness 0.66 ] // più chiaro FIGURE [ size 3.0 ] } shape FIGURE { SQUARE [ ] // … Leggi tutto