My first script

If you have a design you're proud of, share the cfdg file here. It's also a good place to ask for feedback and collaborate.

Moderators: MtnViewJohn, chris, mtnviewmark

Post Reply
ateb9025
Posts: 4
Joined: Thu Sep 08, 2005 10:13 am
Location: Sydney, Australia

My first script

Post by ateb9025 »

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.
Image

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 ;-)

aqua_scummm
Posts: 17
Joined: Sat Jun 11, 2005 5:44 am
Location: Redwood City, CA
Contact:

Post by aqua_scummm »

i like it, it looks pretty cool. personally I would go for more balance, but just go with the flow

Post Reply