Hello all. I just downloaded the program tonite, and I really enjoy using it so far. I just thought i would post my first attempt.
here is the code
startshape FIRSTGO
rule FIRSTGO {
SQUARECHAIN{ hue 10 sat 0.8 b 0.7}
SQUARECHAIN{ hue 10 sat 0.8 b 0.7 rotate 90}
SQUARECHAIN{ hue 10 sat 0.8 b 0.7 rotate 90}
SQUARECHAIN{ hue 10 sat 0.8 b 0.7 rotate 90}
}
rule SQUARECHAIN 10{
BASESHAPE {size 0.15}
SQUARECHAIN{y 0.3
size 0.94 rotate 20 hue 3}
}
rule SQUARECHAIN 10{
BASESHAPE {size 0.15}
SQUARECHAIN{y 0.3
size 0.94 rotate -10 hue 3}
}
rule SQUARECHAIN 1.6{
BRANCH { }
}
rule BRANCH {
BRANCH_LEFT { }
BRANCH_RIGHT { }
}
rule BRANCH_LEFT {
SQUARECHAIN { rotate 20 }
}
rule BRANCH_LEFT {
SQUARECHAIN { rotate 30 }
}
rule BRANCH_LEFT {
SQUARECHAIN { rotate 40 }
}
rule BRANCH_RIGHT {
SQUARECHAIN { rotate -20 }
}
rule BRANCH_RIGHT {
SQUARECHAIN { rotate -30 }
}
rule BRANCH_RIGHT {
SQUARECHAIN { rotate -40 }
}
rule BASESHAPE {
CIRCLE { }
CIRCLE { x 0.5}
CIRCLE { y 0.5 x 0.4}
CIRCLE { y 0.5 x 0.1}
}
The Variable names might be a bit misleading, but it was kind of an evolutionary work
My first script
Moderators: MtnViewJohn, chris, mtnviewmark
-
- Posts: 17
- Joined: Sat Jun 11, 2005 5:44 am
- Location: Redwood City, CA
- Contact: