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

Function updateFrame

src/tailwind/Animations/SplashCursor/SplashCursor.jsx:678–686  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

676 let colorUpdateTimer = 0.0;
677
678 function updateFrame() {
679 const dt = calcDeltaTime();
680 if (resizeCanvas()) initFramebuffers();
681 updateColors(dt);
682 applyInputs();
683 step(dt);
684 render(null);
685 requestAnimationFrame(updateFrame);
686 }
687
688 function calcDeltaTime() {
689 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