|
|
|
|
158
|
|
158
|
|
159
|
---
|
159
|
---
|
160
|
|
160
|
|
161
|
-
|
|
|
162
|
----
|
|
|
163
|
-
|
|
|
164
|
---
|
161
|
---
|
165
|
|
162
|
|
166
|
!INCLUDE "../../eip-diagnostic/tesselations/en/diag-tesselations-01.html"
|
163
|
!INCLUDE "../../eip-diagnostic/tesselations/en/diag-tesselations-01.html"
|
|
|
|
|
189
|
|
186
|
|
190
|
2. The `Tessellations.pro` project contains the `Tessellations` and `DrawingWindow` classes and the `foo` function. Configure the project and run the program. You should see a window similar to the one in Figure 5.
|
187
|
2. The `Tessellations.pro` project contains the `Tessellations` and `DrawingWindow` classes and the `foo` function. Configure the project and run the program. You should see a window similar to the one in Figure 5.
|
191
|
|
188
|
|
192
|
- This figure is created with the `foo` function shown in Figure 4 and explained in Example 1. The `foo` function is invoked from `main()`. In this laboratory experience you will only be making changes to the `main()` function.
|
|
|
|
|
189
|
+ This figure is created with the `foo` function shown in Figure 4 and explained in Example 1. The `foo` function is invoked from `main()`. In this laboratory experience you will only be making changes to the `main()` function.
|
193
|
|
190
|
|
194
|
- Study the `foo` function once again and notice the creation of the objects from the `Tessellations` class, the use of the `setRotation` method, and the `move` method to set the tessellation in the desired position. Notice how the instructions in the `for` loop in the function use the loop's counter to determine the square's position and how the rotation's value is incremented. Also notice that you will need to use the `addTessellation` method to add the tessellation to the `w` window.
|
|
|
|
|
191
|
+ Study the `foo` function once again and notice the creation of the objects from the `Tessellations` class, the use of the `setRotation` method, and the `move` method to set the tessellation in the desired position. Notice how the instructions in the `for` loop in the function use the loop's counter to determine the square's position and how the rotation's value is incremented. Also notice that you will need to use the `addTessellation` method to add the tessellation to the `w` window.
|
195
|
|
192
|
|
196
|
|
193
|
|
197
|
###Exercise 2: Create the `herringbone` function and tessellation
|
194
|
###Exercise 2: Create the `herringbone` function and tessellation
|