src/canvas/CanvasContext.js
function(g, options) {
        var compositeOperation = options.compositeOperation
                || options.composition || 'source-over';
        g.globalCompositeOperation = compositeOperation;// 
        g.fillStyle = options.fillColor || options.color;
        if (options.fillImage) {
            g.fillStyle = g.createPattern(options.fillImage, "repeat");
        }
        g.globalAlpha = options.fillOpacity || options.opacity || 0;
    }
function(g, options) {
        var compositeOperation = options.compositeOperation
                || options.composition || 'source-over';
        g.globalCompositeOperation = compositeOperation;// 
        g.fillStyle = options.fillColor || options.color;
        if (options.fillImage) {
            g.fillStyle = g.createPattern(options.fillImage, "repeat");
        }
        g.globalAlpha = options.fillOpacity || options.opacity || 0;
    }
function ( g , options ) { var compositeOperation = options . compositeOperation || options . composition || 'source-over' ; g . globalCompositeOperation = compositeOperation ; //  g . fillStyle = options . fillColor || options . color ; if ( options . fillImage ) { g . fillStyle = g . createPattern ( options . fillImage , "repeat" ) ; } g . globalAlpha = options . fillOpacity || options . opacity || 0 ; }
Copies fill styles from the specified style object to the canvas context.
Copies fill styles from the specified style object to the canvas context .