From f190c28cd2b390aae824c145d62a8c1dd4e8b06f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20Owczarczyk?= Date: Wed, 15 May 2019 11:24:52 +0000 Subject: [PATCH] lel --- populus_nigra_italica.lpy | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/populus_nigra_italica.lpy b/populus_nigra_italica.lpy index 9d63fda..a8bb1c2 100644 --- a/populus_nigra_italica.lpy +++ b/populus_nigra_italica.lpy @@ -9,22 +9,22 @@ derivation length: 50 production: A(x,k) : if x >= a-20: - produce [-(a-x)F(1,0.05+0.25/k)C(1,k)]/(75)F(0.7,0.05+0.25/k)A(x+1,k+0.1) + produce [-(a-x)SetGuide(path,50)F(1,0.05+0.25/k)C(1,k)]/(75)SetGuide(path,50)F(0.7,0.05+0.25/k)A(x+1,k+0.1) elif x <= 5: produce F(0.7,0.05+0.25/k)A(x+1,k+0.1) else: - produce[-(30)F(1,0.05+0.25/k)B(1,k)]/(75)F(0.5,0.05+0.25/k)A(x+1,k+0.1) + produce[-(30)SetGuide(path,50)F(1,0.05+0.25/k)B(1,k)]/(75)SetGuide(path,50)F(0.5,0.05+0.25/k)A(x+1,k+0.1) B(x,k): if x <= 5: r1 = random.random() r2 = random.random() - produce [^(r1*50)F(1,0.05+0.25/k)-(20);Leaf(1)][&(r2*50)F(1,0.05+0.25/k)-(20);Leaf(1)]F(1,0.05+0.25/k)[-(20);Leaf(1)]B(x+1,k+1) + produce [^(r1*50)SetGuide(path,10)F(1,0.05+0.25/k)-(20);Leaf(1)][&(r2*50)F(1,0.05+0.25/k)-(20);Leaf(1)]SetGuide(path,10)F(1,0.05+0.25/k)[-(20);Leaf(1)]B(x+1,k+1) C(x,k): if x <= 5: r1 = random.random() r2 = random.random() - produce [^(r1*50)F(1,0.05+0.25/k)-(20);Leaf(1)]F(1,0.05+0.25/k)[-(20);Leaf(1)]C(x+1,k+1) + produce [^(r1*50)SetGuide(path,50)F(1,0.05+0.25/k)-(20);Leaf(1)]SetGuide(path,50)SetGuide(path,0)F(1,0.05+0.25/k)[-(20);Leaf(1)]C(x+1,k+1) Leaf(x): - produce ~l(1) + produce ,(2) ~l(1) interpretation: -endlsystem \ No newline at end of file +endlsystem