draw(drawMethod, fillColor) {
        this._context.beginPath();
        drawMethod();

        // Only change the color if it's not already that color
        if (this._context.fillStyle.toLowerCase() !== fillColor.toLowerCase()) {
            this._context.fillStyle = fillColor;
        } // if

        this._context.fill();
    } // draw
/**
     * Draws the passed in object onto the canvas.
     * @param {function} drawMethod the method to use to draw with parameters
     *                              already applied using Function.bind
     * @param {string}   fillColor  the color to use for the fill
     */
Draws the passed in object onto the canvas.
@param {function} drawMethod the method to use to draw with parameters
already applied using Function.bind
@param {string}   fillColor  the color to use for the fill
Draws the passed in object onto the canvas . @param { function } drawMethod the method to use to draw with parameters already applied using Function . bind @param { string } fillColor the color to use for the fill
draw(drawMethod, fillColor) {
        this._context.beginPath();
        drawMethod();
        if (this._context.fillStyle.toLowerCase() !== fillColor.toLowerCase()) {
            this._context.fillStyle = fillColor;
        } 
        this._context.fill();
    } 
draw ( drawMethod , fillColor ) { this . _context . beginPath ( ) ; drawMethod ( ) ; if ( this . _context . fillStyle . toLowerCase ( ) !== fillColor . toLowerCase ( ) ) { this . _context . fillStyle = fillColor ; } this . _context . fill ( ) ; }
Draws the passed in object onto the canvas.
Draws the passed in object onto the canvas .
// Only change the color if it's not already that color // if // draw