carocad/CodeInk

View on GitHub
codeink/canvas/tools.js

Summary

Maintainability
A
0 mins
Test Coverage
var tools = new function() {
    this.loadStats = function() {
        var stats = new Stats();
        stats.domElement.style.cssText = 'position:fixed;right:0;top:0;z-index:10000';
        document.body.appendChild(stats.domElement);
        requestAnimationFrame( function loop() {
            stats.update();
            requestAnimationFrame(loop)
        });
    };
};