Teaching Aid

Triangle

 

Copy/Paste the following code to your GroIMP project:
//**********************************************************

/*
You will learn with this example:
– how to create a simple model of a triangle as a static structure
– how to insert comments into the code
*/

protected void init()
[
// The start word is transformed into a triangle
Axiom ==> RU(30) F(10) RU(120) F(10) RU(120) F(10);
]

//**********************************************************

DATE:   2009

 

AUTHOR: W. Kurth

 

DESCRIPTION:  see model

 

Welcome to the website grogra.de. This site is the web centre of growth grammars of the Department Ecoinformatics, Biometrics and Forest Growth at the Georg-August University of Göttingen and its cooperation partners.