MCPcopy Create free account
hub / github.com/TodePond/ScreenPond / tick

Function tick

libraries/show.js:66–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

64
65 let t = 0;
66 const tick = () => {
67 t += show.speed;
68 while (t > 0) {
69 if (!show.paused) show.tick(show.context, show.canvas);
70 show.supertick(show.context, show.canvas);
71 t--;
72 }
73
74 requestAnimationFrame(tick);
75 };
76
77 addEventListener("resize", resize);
78 addEventListener("keydown", (e) => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected