4.207 Formal Design Knowledge and
Programming Constructs

Homework 4

Lira Nikolovska
Design and Computation program



Working with NITROS

Parametric grammar Triangles
View code here

Note: the color of the triangles is
changing when a rule is applied.






Example using all rules of the grammar.




Triangle grammar: INITIAL SHAPE
Isoceles triangle



Triangle grammar: RULE 1
Mirror triangle



Triangle grammar: RULE 2
Rotate triangle



Triangle grammar: RULE 3
Copy triangle along X axis



Triangle grammar: RULE 4
Copy triangle along Y axis



Triangle grammar: RULE 5
Copy triangle along long side









Back to main page.