Code: Select all
startshape scene
rule tige2 {
SQUARE { }
tige2 { x 0.9 y 0.1 r 1 s 0.99 }
}
rule tige2 {
SQUARE { }
tige2 { x 0.9 y 0.1 r 5 s 0.99 }
}
rule tige2 {
SQUARE { }
tige2 { x 0.9 y 0.1 r -1 s 0.99 }
}
rule tige2 {
SQUARE { }
tige2 { x 0.9 y 0.1 r -5 s 0.99 }
}
rule tige2 0.2 {
fleur { x 20 }
tige2 { }
}
rule tige2 0.1 {
tige { }
}
rule tige {
SQUARE { }
tige { x 0.9 s 0.99 }
}
rule tige 0.1{
tige { b 0.1 }
}
rule tige {
SQUARE { b 0.2 }
tige { x 0.9 s 0.99 }
}
rule tige 0.05 {
tige2 { }
}
rule fleur {
CIRCLE { s 0.8 b 0.5 }
CIRCLE { x 1 b 0.7 }
CIRCLE { x -1 b 0.7 }
CIRCLE { y 1 b 0.7 }
CIRCLE { y -1 b 0.7 }
CIRCLE { x 0.8 y 0.8 s 0.5}
CIRCLE { x -0.8 y 0.8 s 0.5}
CIRCLE { x -0.8 y -0.8 s 0.5}
CIRCLE { x 0.8 y -0.8 s 0.5}
}
rule touffe {
tige { }
tige { y 1 r 10}
tige { y -1 r -10}
tige { y 2 r 20}
tige { y -2 r -20}
touffe { x 5 s 0.9 b 0.1}
}
rule scene {
touffe { r 90 }
pot { }
}
rule pot { wait1 { } }
rule wait1 { wait2 { } }
rule wait2 { wait3 { } }
rule wait3 { wait4 { } }
rule wait4 { wait5 { } }
rule wait5 { wait6 { } }
rule wait6 { wait7 { } }
rule wait7 {
SQUARE { s 5 }
SQUARE { s 5 x 4}
SQUARE { s 5 x -4}
SQUARE { s 9 y -5}
SQUARE { s 9 y -9}
SQUARE { s 9 x 2 y -9}
SQUARE { s 9 x -2 y -9}
CIRCLE { s 4 x 7 b 1 }
CIRCLE { s 4 x -7 b 1 }
CIRCLE { s 3 x 5 y -4}
CIRCLE { s 3 x -5 y -4 }
}