Creative Coding
Lesson 3 of 3 6 min +40 XP

Motion & Interaction

Art that moves and responds.

What you'll learn

  • Understand motion & interaction
  • Apply it to real examples
  • Check yourself with a quiz
The sketch that follows your mouse

Add a draw loop and your shapes redraw every instant; tie them to the mouse and the art chases your cursor. Code lets a picture move and react to you.

Frames and input

A repeating draw loop updates visuals over time for animation. Mouse and key input make the art interactive.

Knowledge Check

+10 XP / correct

1. Animation in code comes from…

2. Interactivity responds to…