cq = function(selector) {

    if (arguments.length === 0) {

      var canvas = cq.createCanvas(window.innerWidth, window.innerHeight);

      window.addEventListener("resize", function() {
        // canvas.width = window.innerWidth;
        // canvas.height = window.innerHeight;
      });

    } else if (typeof selector === "string") {

      var canvas = document.querySelector(selector);

    } else if (typeof selector === "number") {

      var canvas = cq.createCanvas(arguments[0], arguments[1]);

    } else if (selector instanceof Image) {

      var canvas = cq.createCanvas(selector);

    } else if (selector instanceof ImageBitmap) {

      var canvas = cq.createCanvas(selector);

    } else if (selector instanceof cq.Layer) {

      return selector;

    } else {

      var canvas = selector;

    }

    return new cq.Layer(canvas);
  }
Basic loading screen using DOM

Loading screen is a state like any other except that
it is loaded from `PLAYGROUND.LoadingScreen`. To override
simply define a `PLAYGROUND.LoadingScreen` in your code after
playground.js was imported.