Alberi con 2 rami

Il classico albero frattale con angolo di 90° tra i rami

startshape ALBERO45

shape ALBERO45
{
    SQUARE
    [
        brightness 0.3
        size       1   10
        saturation 1
    ]
    ALBERO45 [ x -2 y +6.6 hue 15 rotate +45 size 0.598 ]
    ALBERO45 [ x +2 y +6.6 hue 15 rotate -45 size 0.598 ]
}

I rami si allungano molto, size 1 20, e si aprono con angolo +90° o -90°

startshape ALBERO90

shape ALBERO90
{
    SQUARE   [                         size 1 20 ]
    ALBERO90 [ x -2.5 y +10 rotate +90 size 0.7  ]
    ALBERO90 [ x +2.5 y +10 rotate -90 size 0.7  ]
}

Anche dei quadrati possono imitare una pianta

startshape ALBEROQ2

shape ALBEROQ2
{
    QUADRATO []
    ALBEROQ2 [ x +2.5 y +2.5 hue 15 rotate -45 size 0.597 ]
    ALBEROQ2 [ x -2.5 y +2.5 hue 15 rotate +45 size 0.597 ]
}

shape QUADRATO
{
    SQUARE [ brightness 0.5 hue 0 saturation 1 size 5 ]
}

Lascia un commento