function ColorCommand(args) {
    var parsed = new statements.ArgumentStatement(args);

    if (parsed.args.length < 3) throw new SyntaxError('COLOR command requires 3 arguments');
    this.red = parsed.args[0];
    this.green = parsed.args[1];
    this.blue = parsed.args[2];
    this.alpha = parsed.args.length > 3 ? parsed.args[3] : false;
}
function ColorCommand(args) {
    var parsed = new statements.ArgumentStatement(args);

    if (parsed.args.length < 3) throw new SyntaxError('COLOR command requires 3 arguments');
    this.red = parsed.args[0];
    this.green = parsed.args[1];
    this.blue = parsed.args[2];
    this.alpha = parsed.args.length > 3 ? parsed.args[3] : false;
}
function ColorCommand ( args ) { var parsed = new statements . ArgumentStatement ( args ) ; if ( parsed . args . length < 3 ) throw new SyntaxError ( 'COLOR command requires 3 arguments' ) ; this . red = parsed . args [ 0 ] ; this . green = parsed . args [ 1 ] ; this . blue = parsed . args [ 2 ] ; this . alpha = parsed . args . length > 3 ? parsed . args [ 3 ] : false ; }
Sets the draw color of the canvas

@param {String} args The arguments to the command
@constructor
Sets the draw color of the canvas