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

16 lines
317 B
Plaintext
Raw Normal View History

2021-07-10 00:25:49 +02:00
#axiom
I(1,1)
#rules
I(a,b) : a == 1; b <= 3 -> R(0.5)I(1, b + 1)
I(a,b) : a == 1; b == 4 -> R(0.5)I(2, 0)
I(a,b) : a == 2; b == 0 -> B(0.2,1)I(2, b + 1)
B(a,b) : b < 7 -> N\(90)[-B(a,b+1)][L(0.2)\(90)L(0.2)]B(a,b+1)
R(a) : a < 3 -> R(a+0.14)
B(a,b) : a < 1 -> B(a+0.1, b)
L(a) : a < 1.5 -> L(a + 0.4)
#end rules