Examples / p5.js Examples / / Warmer / Colder

Warmer / Colder

example p5.js javascript input

This sketch hides a circle, and tells you whether your mouse is getting warmer (closer) or colder (further away).

Click here to edit this code in the p5.js editor.

Remix Ideas

  • Add other hints like “move left” or “move right”
  • Show a trail of red or blue dots based on whether the user was warmer or colder
  • Move the shape over time

Comments and Questions

Happy Coding is a community of folks just like you learning about coding.
Do you have a comment or question? Post it here!