From ccd96727967e7eb60bb357ca34e9f47907f23b48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Kubiak?= Date: Sun, 12 May 2019 13:54:05 +0000 Subject: [PATCH] Zaktualizuj 'populus_nigra_italica.lpy' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Zmiana kolorów --- populus_nigra_italica.lpy | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/populus_nigra_italica.lpy b/populus_nigra_italica.lpy index aea08e3..9d63fda 100644 --- a/populus_nigra_italica.lpy +++ b/populus_nigra_italica.lpy @@ -1,7 +1,5 @@ import random - a = 50 - def Start(): #random.seed(150) pass @@ -16,18 +14,16 @@ A(x,k) : 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) - 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)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) 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)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) Leaf(x): produce ~l(1) interpretation: