dopa-stats
v1.2.2
Published
Inspiration from mrdoob/stats.js, rewritten with dopa(canvas)
Downloads
5
Readme
dopa-stats
Inspiration from mrdoob/stats.js, rewritten with dopa(canvas)
install
<script src="https://cdn.jsdelivr.net/npm/dopa-stats"></script>
npm install dopa-stats --save
usage
<div id="stats" style="position: fixed;left: 0;top: 0;opacity: 0.9;cursor: pointer;"></div>
<script>
let stats = createStats('#stats');
// stats.addPanel('TEST1', '#ffff88', '#222211');
// stats.addPanel('TEST2', '#ff88ff', '#221122');
// stats.showPanel('TEST1');
// stats.updatePanel('TEST1', value, maxValue);
// stats.removePanel('TEST1');
// stats.destroy();
</script>