For Loop HW
- jpanagak
- Nov 19, 2019
- 1 min read
For my For Loop HW, I decided to stick with the code I created in class to make a moveable, trippy design. I kept the normal code, but replaced the ellipse with triangles. When you start off with just one triangle on the screen, it is just rotating from left to right until it makes contact with the vertical barriers. as you click, another triangle is added, also rotating, but at different speeds. here is the outcome.



To update it a little, and make it annoying to look at, I added a white background. I also added a checkerboard pattern on top of the moving shapes.

This was my final code.


コメント