Animations Key, Mouse

Learning mouse and key handler.

Grow with Key

Stretch 10% larger when a key is hit.

  • Write function
  • Signature?

Just wider not taller?


Mouse Date

Show picture of calendar at mouse location.


Mouse Line

Calendar position:

  • on line y=x
  • matches mouse vertical position

Thrice Same

Same image appears 3x, horizontally.

How?


Shake and Move

  • Move 5 pixels down when mouse is moved.
  • Enlarge 6% every second.
  • Move 10 pixels up when a key is hit.

Homework

  • 6.7.2
  • 6.7.3
Last modified October 3, 2023: Removed slide type, small reformatting. (c733a76)