index.js
function Color(values, spaceAlpha, space) {
	this.values = values;
	this.alpha = 1;
	this.space = 'rgb';
	this.originalColor = null;

	if (space !== undefined) {
		this.alpha = spaceAlpha;
		this.space = space;
	} else if (spaceAlpha !== undefined) {
		if (typeof spaceAlpha === 'number') {
			this.alpha = spaceAlpha;
		} else {
			this.space = spaceAlpha;
		}
	}
}
function Color(values, spaceAlpha, space) {
	this.values = values;
	this.alpha = 1;
	this.space = 'rgb';
	this.originalColor = null;

	if (space !== undefined) {
		this.alpha = spaceAlpha;
		this.space = space;
	} else if (spaceAlpha !== undefined) {
		if (typeof spaceAlpha === 'number') {
			this.alpha = spaceAlpha;
		} else {
			this.space = spaceAlpha;
		}
	}
}
function Color ( values , spaceAlpha , space ) { this . values = values ; this . alpha = 1 ; this . space = 'rgb' ; this . originalColor = null ; if ( space !== undefined ) { this . alpha = spaceAlpha ; this . space = space ; } else if ( spaceAlpha !== undefined ) { if ( typeof spaceAlpha === 'number' ) { this . alpha = spaceAlpha ; } else { this . space = spaceAlpha ; } } }
Shorthand for creation of a new color object.

@name ColorShorthand
@function

@param {Array} values - Values in the corresponding color space
@param {number} [alpha = 1] - Alpha of the color
 
Color instance

@constructor

@param {Array} values - Values in the corresponding color space
@param {number} [alpha=1] - Alpha of the color
@param {Color.spaces} [space='rgb'] - Space corresponding to the values

@property {Array} values - Values in given color space
@property {string} space - Current color space
@property {number} alpha - Alpha of tho color
@property {Color} originalColor - The color this was converted from (if
applicable)
Shorthand for creation of a new color object .