- [ ] RESOURCES FROM CLASS:
- [x] TEST YOURSELF
- [x] DO: The idea this week is to explore re-organizing your code. It is 100% legitimate to turn in a version of a previous assignment where nothing changes for the end user, but the code has been restructured. You may, however, choose to try a new experiment from scratch. Aim to keep
setup()
and draw()
as clean as possible, and do everything (all calculations, drawing, etc.) in functions that you create yourself. Possibilities (choose one or more):
- Reorganize "groups of variables" into objects. | How to do this.
- Break code out of
setup()
and draw()
into functions.
- Use a function to draw a complex design multiple times with different arguments.
- If you are feeling ambitious, try embedding a function into an object.
- [ ] READ / WATCH
- [ ] Examples