Image
Code

Multicolor Mouse Follower

Curran Kelleher

Last edited Jan 12, 2023
Created on Jan 12, 2023

Based on original work by Spencer, this example shows how you can have multiple independent pieces of state that respond to different interactions:

  • Moving the mouse moves the circle
  • Clicking changes color
MIT Licensed