MCPcopy Create free account
hub / github.com/DavidHDev/react-bits / updateFrame

Function updateFrame

src/content/Animations/SplashCursor/SplashCursor.jsx:681–690  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

679 let colorUpdateTimer = 0.0;
680
681 function updateFrame() {
682 if (!isActive) return;
683 const dt = calcDeltaTime();
684 if (resizeCanvas()) initFramebuffers();
685 updateColors(dt);
686 applyInputs();
687 step(dt);
688 render(null);
689 animationFrameId.current = requestAnimationFrame(updateFrame);
690 }
691
692 function calcDeltaTime() {
693 let now = Date.now();

Callers 1

SplashCursorFunction · 0.70

Calls 7

calcDeltaTimeFunction · 0.70
resizeCanvasFunction · 0.70
initFramebuffersFunction · 0.70
updateColorsFunction · 0.70
applyInputsFunction · 0.70
stepFunction · 0.70
renderFunction · 0.70

Tested by

no test coverage detected