status-hud
v1.0.2
Published
Mess-free way to log your animation loop state
Downloads
10
Readme
Mess-free way to log your animation loop state.
Install:
npm i status-hud
Use:
import { Status } from "status-hud";
let myVar = 0;
function update() {
// your render loop
myVar++;
// log your variable
Status.log("myVar", myVar);
//...
requestAnimationFrame(update);
}
requestAnimationFrame(update);