ZMWSLI0-SL2021-GR11/Projekt/MWSProjekt/Assets/LSystems/TreeSpring.txt

16 lines
318 B
Plaintext
Raw Normal View History

2021-07-09 23:30:37 +02:00
#axiom
I(1,1)
#rules
I(a,b) : a == 1; b <= 5 -> R(0.7)I(1, b + 1)
I(a,b) : a == 1; b == 6 -> R(0.7)I(2, 0)
I(a,b) : a == 2; b == 0 -> B(0.5,1)I(2, b + 1)
B(a,b) : b < 10 -> N\(90)[-B(a,b+1)][L(0.2)\(90)L(0.2)]B(a,b+1)
R(a) : a < 1.5 -> R(a+0.14)
B(a,b) : a < 1 -> B(a+0.1, b)
L(a) : a < 3 -> L(a + 0.4)
#end rules