User Tools

Site Tools


programming_notes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
programming_notes [2025/01/30 15:23]
scox
programming_notes [2025/03/26 19:48] (current)
scox
Line 1: Line 1:
-The draw() function should only create a static image. It can be called as many times as necessary by reset functions, for example. +  * The draw() function should only create a static image. It can be called as many times as necessary by reset functions, for example. 
- +  * The animate() function should draw() and requestAnimationFrame(animate).  It should be called only once.  If called multiple times, it will speed up the animation. 
-The animate() function should draw() and requestAnimationFrame(animate).  It should be called only once.  If called multiple times, it will speed up the animation. +  * Create Zones to simplify moving things around without disrupting the click events. (Added to draw-menus.js file in the template folder.) 
- +  * After updating a Zone, don't forget to draw(); 
-Create Zones to simplify moving things around without disrupting the click events. (Added to draw-menus.js file in the template folder.) +  * Watch for overlapping Zones! You'll can trigger both click functions without realizing it.
  
programming_notes.1738250591.txt.gz · Last modified: 2025/01/30 15:23 by scox