diff --git a/README.md b/README.md index 91c9197..91c1592 100644 --- a/README.md +++ b/README.md @@ -2,18 +2,58 @@ Let's practice using grammars! For this lab, please pull up the L-system node in Houdini. ## 1. Wheat grammar puzzle + +### Rule +premise: F + +rule: F=FF-[FF]+FF-[FF]+FF- + +angle: 28 + +![1696438409301](image/README/1696438409301.png) + Look at these iterations (n = 1, 2, 3) of a one-rule grammar. Using the built in symbols in Houdini, design a grammar that produces this output. Take a screenshot of your rules.\ square1 square2 square3 ## 2. Square grammar puzzle +### Rule +premise: +F + +rule: F=F+F-F-F+F + +angle: 90 + +![1696433182966](image/README/1696433182966.png) + + How about this one? Take a screenshot of your rules.\ square1 square2 square3 ## 3. Custom plant + +premise: A +rule: +1. A=+[FFFFFFFFFF-FFF-FFFFF----FFFFF-FFFFFFFFFF]- +2. B=+[FF-F-F-F-F--F-F-F-F-FF]---- +3. C=+[FF-FF-FF-FF-FF---FF-FF-FF-FF-FF]---- +4. F=FAB+B+B+C+ +angle: 30 + +* Generation = 3 +![1696437863862](image/README/1696437863862.png) +* Generation = 5 +![Alt text](image.png) + +I chose to draw a sunflower and take the image below as a reference. A sunflower can be broadly divided into two parts: the outer large petals and the inner circular section. I used A to draw the outermost petals, while B and C were used to create the inner shapes and details. A is responsible for drawing the finer petals since there are fewer of them, while B and C are used to draw thicker petals of different sizes. By stacking multiple angles of B and C, they form an approximation of a circular shape. + +Source: [Sunflower](https://www.istockphoto.com/vector/sunflower-flower-isolated-gm927047528-254336166) + +![1696437998749](image/README/1696437998749.png) + Choose a plant in the world. Working off a reference, design a grammar that mimics the structure of that plant. Unlike our simple puzzles, please use multiple rules for greater complexity. Think carefully about the structure of your grammar! EXPLAIN the structure of your plant in the README. What are the components? What do each of the rules do? Be sure to also include images of a few iterations of your output plant. ## Submission diff --git a/image.png b/image.png new file mode 100644 index 0000000..4730add Binary files /dev/null and b/image.png differ diff --git a/image/README/1696433182966.png b/image/README/1696433182966.png new file mode 100644 index 0000000..46c705f Binary files /dev/null and b/image/README/1696433182966.png differ diff --git a/image/README/1696437863862.png b/image/README/1696437863862.png new file mode 100644 index 0000000..5264b41 Binary files /dev/null and b/image/README/1696437863862.png differ diff --git a/image/README/1696437998749.png b/image/README/1696437998749.png new file mode 100644 index 0000000..b3a3bee Binary files /dev/null and b/image/README/1696437998749.png differ diff --git a/image/README/1696438409301.png b/image/README/1696438409301.png new file mode 100644 index 0000000..3e179a7 Binary files /dev/null and b/image/README/1696438409301.png differ