home *** CD-ROM | disk | FTP | other *** search
- name 'Lychnis Coronaria (Rose Campion)'
- objname 'Campion01'
- scale 0.0020
- radius 70
- length 100
- etrop .0004
-
- #define j 5 as "Size,Small,Large",1,7
- iterations (j*5)
- #define g (j*3+50)
- #define x 100
- #define d 0 as "Color of Flowers,Red,Violet,White,Yellow"
- #define c (d+7)
- #define e 0 as "Detail,Low,High"
- #define h (e*10+30) // Makes up for lack of branch bend on low detail
-
- axiom RA(7)
-
- rules
-
- R >> !(j*8+30)&(e*20)
- A(t) : t=7 >> '(1)FI(20)[&.10(60)L(0)]/.10(90)[!&.05(h)A(0)]/.10(90)[&.10(60)L(0)]/(90)[!&(h)A(4)]FI(10)FK(0)
- A(t) : t<7 >> A(t+1)
- I(t) : t>0&e=1 >> /(1.5)^(2.6)FFFI(t-2)
- I(t) : t>0&e=0 >> FF(50)I(t-1)
- L(t) >> '(5)[{+:f(x,0)-:f(x,0):f(x,0)-:&(5)f(x,0)+|+:^(10)f(x,0)-:&(5)f(x,0):f(x,0)-:f(x,0)}]'(1)
- K(t) >> [^(5)'(0)F(5)W/(72)W/(72)W/(72)W/(72)W]
- M >> [^'(11)F(x)]['(c){&&&&//f(x,1)-------:f(x,1)+(22):f(x,1)|-(22):f(x,1)+(22):f(x,1)}]'(1)
-
- W >> ['(c)&&&&P]'(1)
-
- f(y,n) : y<400&n=0 >> f(y+30,0)
- f(y,n) : y<400&n=1 >> f(y+45,1)
- f(y,n) : y>399&n>0&n<5 >> f(y,n+1)
- f(y,n) : n=5 >> f(35,n+1)
-
- // Flat flower
-
- Q >> {-(30):f(x,1)f(x,1)f(x,1):+(90)&(5)f(x,1):+(90)^(10)f(x,1):-(90)&(5)f(x,1):+(90)^(10)f(x,1):}
-
- // Bumpy flower
-
- P >> {-(30):f(x,1)&(2)f(x,1)&(2)f(x,1)&(2):+(90)^(6)f(x,1):+(90)f(x,1):-(90)f(x,1):+(90)f(x,1):}
-