I did this week’s assignment after watching the video, and the loop statement mentioned in the video inspired me. Using a loop statement, I attempted to draw a swallow grid. Then I found I could make changes using conditional statements, and the result looked like a mosaic. So my work seems not to relate to making choices… But I do like it.
Conditionals are essential in complicated circumstances, but they need greater logic and reasoning. It’s not easy for me. I’m still working on it.
Questions:
- And I even try to make the color to be random, but the image had severe splashes. I guess the reason is the random function in the loop.
- Is there any method to simplify my code? The code is too long and has a lot of repetitive logic.