Eucalyptus Tree

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
antipex
Posts: 5
Joined: Wed Jul 06, 2005 4:29 am
Location: Queensland, Australia
Contact:

Eucalyptus Tree

Post by antipex »

This is *sort of* like the gum trees that are so common here...the code is -partially- adapted from the lesson.

EDIT: Sometimes it's like a gum tree, others its like decidious trees...just keep rendering ;)

Code: Select all

startshape GUMTREE

rule GUMTREE {
	TREE { }
}

rule TREE 20 {
	CIRCLE { size 0.25 }
	TREE { y 0.1 size 0.965}
}

rule TREE 1.5 {
	BRANCH { }
}

rule BRANCH {
	LBRANCH { }
	RBRANCH { }
}

rule LBRANCH {
	TREE { rotate 20 }
}

rule RBRANCH {
	TREE { rotate -20 }
}

Post Reply