Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>Quadtree</title>
  <script type="text/javascript" src="https://rawgit.com/bullgare/quadtree/master/qtree.js"></script>
    <script type="text/javascript">
        // it's for measuring performance
        var perf = (function()
        {
            "use strict";
            var timers = {};
            return {
                start: function start(tag)
                {
                    var time;
                    if (window.performance) {
                        time = window.performance.now();
                    }
                    else {
                        time = +new Date();
                    }
                    timers[tag] = time;
                },
                stop: function stop(tag)
                {
                    var startTime = timers[tag];
                    if (! startTime) {
                        return undefined;
                    }
                    var time;
                    if (window.performance) {
                        time = window.performance.now();
                    }
                    else {
                        time = +new Date();
                    }
                    return time - startTime;
                }
            }
        }());
    </script>
</head>
<body>
<canvas id="canvas" width="2000" height="1100"></canvas>
</body>
</html>
</html>
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
bullgarepro
0viewers