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

    if (parsed.args.length < 2) throw new SyntaxError('READPIXEL command requires 2 arguments');
    this.x = parsed.args[0];
    this.y = parsed.args[1];
}
function ReadpixelCommand(args) {
    var parsed = new statements.ArgumentStatement(args);

    if (parsed.args.length < 2) throw new SyntaxError('READPIXEL command requires 2 arguments');
    this.x = parsed.args[0];
    this.y = parsed.args[1];
}
function ReadpixelCommand ( args ) { var parsed = new statements . ArgumentStatement ( args ) ; if ( parsed . args . length < 2 ) throw new SyntaxError ( 'READPIXEL command requires 2 arguments' ) ; this . x = parsed . args [ 0 ] ; this . y = parsed . args [ 1 ] ; }
Reads a pixel at a certain location

@param {String} args The arguments to the command
Reads a pixel at a certain location