Zaktualizuj 'populus_nigra_italica.lpy'
Zmiana kolorów
This commit is contained in:
parent
e78a255edc
commit
ccd9672796
@ -1,7 +1,5 @@
|
|||||||
import random
|
import random
|
||||||
|
|
||||||
a = 50
|
a = 50
|
||||||
|
|
||||||
def Start():
|
def Start():
|
||||||
#random.seed(150)
|
#random.seed(150)
|
||||||
pass
|
pass
|
||||||
@ -16,18 +14,16 @@ A(x,k) :
|
|||||||
produce F(0.7,0.05+0.25/k)A(x+1,k+0.1)
|
produce F(0.7,0.05+0.25/k)A(x+1,k+0.1)
|
||||||
else:
|
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)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):
|
B(x,k):
|
||||||
if x <= 5:
|
if x <= 5:
|
||||||
r1 = random.random()
|
r1 = random.random()
|
||||||
r2 = 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):
|
C(x,k):
|
||||||
if x <= 5:
|
if x <= 5:
|
||||||
r1 = random.random()
|
r1 = random.random()
|
||||||
r2 = 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):
|
Leaf(x):
|
||||||
produce ~l(1)
|
produce ~l(1)
|
||||||
interpretation:
|
interpretation:
|
||||||
|
Loading…
Reference in New Issue
Block a user