Code Toolkit: Python, Fall 2020

Week 3 — Wednesday, September 16 — Class notes

Review of last week

Interaction

Adding interactivity with Processing

Please wait here!

Stretch break!

Interaction, continued

Please wait here!

If you've gotten this far before the rest of the class, wait here and maybe experiment by replacing line() with different draw primitives? What if you remove background() and draw lines from pmouseX,pmouseY to mouseX,mouseY where the color is determined by the distance between points?

Map