function Isomer(canvasId, options) {
	  options = options || {};

	  this.canvas = new Canvas(canvasId);
	  this.angle = Math.PI / 6;

	  this.scale = options.scale || 70;

	  this._calculateTransformation();

	  this.originX = options.originX || this.canvas.width / 2;
	  this.originY = options.originY || this.canvas.height * 0.9;

	  /**
	   * Light source as defined as the angle from
	   * the object to the source.
	   *
	   * We'll define somewhat arbitrarily for now.
	   */
	  this.lightPosition = options.lightPosition || new Vector(2, -1, 3);
	  this.lightAngle = this.lightPosition.normalize();

	  /**
	   * The maximum color difference from shading
	   */
	  this.colorDifference = 0.20;
	  this.lightColor = options.lightColor || new Color(255, 255, 255);
	}
The Isomer class

This file contains the Isomer base definition