Page 1 of 1

Eucalyptus Tree

Posted: Wed Jul 06, 2005 4:30 am
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 }
}