<canvas id="canvas"></canvas>
body {
    overflow: hidden;
    background: #000;
}
function Constellation () {
  var _this = this,
      canvas = document.getElementById('canvas'),
      context = canvas.getContext('2d'),
      config = {
        width: window.innerWidth,
        height: window.innerHeight,
      };

  this.setCanvas = function () {
    canvas.width = config.width;
    canvas.height = config.height;
  };

  this.setContext = function () {

  };

  this.init = function () {
    this.setCanvas();
    this.setContext();
  };
}

document.addEventListener("DOMContentLoaded", function() {
  var c = new Constellation();
  c.init();
});

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.