src/canvas/CanvasContext.js
function(g, options) {
        var compositeOperation = options.compositeOperation
                || options.composition || 'source-over';
        g.globalCompositeOperation = compositeOperation;// 
        g.globalAlpha = options.stokeOpacity || options.lineOpacity
                || options.opacity || 0;
        g.strokeStyle = options.lineColor || options.color;
        g.lineWidth = options.lineWidth || options.width || 0;
        g.lineCap = options.lineCap || 'round'; // 'butt|round|square'
        g.lineJoin = options.lineJoin || 'round'; // 'miter|round|bevel'
    }
function(g, options) {
        var compositeOperation = options.compositeOperation
                || options.composition || 'source-over';
        g.globalCompositeOperation = compositeOperation;// 
        g.globalAlpha = options.stokeOpacity || options.lineOpacity
                || options.opacity || 0;
        g.strokeStyle = options.lineColor || options.color;
        g.lineWidth = options.lineWidth || options.width || 0;
        g.lineCap = options.lineCap || 'round'; // 'butt|round|square'
        g.lineJoin = options.lineJoin || 'round'; // 'miter|round|bevel'
    }
function ( g , options ) { var compositeOperation = options . compositeOperation || options . composition || 'source-over' ; g . globalCompositeOperation = compositeOperation ; //  g . globalAlpha = options . stokeOpacity || options . lineOpacity || options . opacity || 0 ; g . strokeStyle = options . lineColor || options . color ; g . lineWidth = options . lineWidth || options . width || 0 ; g . lineCap = options . lineCap || 'round' ; // 'butt|round|square' g . lineJoin = options . lineJoin || 'round' ; // 'miter|round|bevel' }
Copies stroke styles from the specified style object to the canvas
context.
Copies stroke styles from the specified style object to the canvas context .