diff --git a/content/notes/03-snowflake.md b/content/notes/03-snowflake.md new file mode 100644 index 000000000..6825f650d --- /dev/null +++ b/content/notes/03-snowflake.md @@ -0,0 +1,29 @@ +--- +title: "03-snowflake" +tags: +- lab +--- + +Script + +[Introduction] + +"Hello and welcome to the demonstration of our snowflake generator program. In this video, we will show you how to use the program and explain the algorithm behind it." + +[User Interface] + +"First, let's take a look at the user interface. As you can see, the program is very simple and intuitive to use. The snowflake is displayed in the center of the screen, and you can use the left and right arrow keys to increase or decrease the order of the displayed snowflake. You can also use the escape key to exit the program." + +[Algorithm] + +"Now, let's talk about the algorithm behind the snowflake generator. The program uses an object-oriented approach to generate the snowflake. Each line in the snowflake is represented by a `Segment` object. To create order 0 of the snowflake, we simply create three Segments in the shape of an equilateral triangle. Then, to generate subsequent orders, each Segment has a function to generate its four children." + +[Code Example] + +"For example, let's take a look at the code that generates the children of a segment. We use a series of vector operations to calculate the positions of the children. The origin is the Vector A, and to get L we scale B by ⅟3. To get R, we subtract L from B, and to get C, we rotate L by 60⁰ and add L." + +[Code Example Displayed on Screen] + +[Conclusion] + +"And that's it! We hope you enjoyed this demonstration of our snowflake generator program. If you have any questions or comments, please feel free to contact us. Thank you for watching!" diff --git a/content/notes/cosc-326.md b/content/notes/cosc-326.md index 7523c4b4f..a3ebe4ca0 100644 --- a/content/notes/cosc-326.md +++ b/content/notes/cosc-326.md @@ -12,6 +12,7 @@ tags: - [[01-dates]] - [[02-]] - [[03-snowflake]] +- # Notes - [[townhall-04]]