code: function(g, options) {
          var compositeOperation = options.compositeOperation
                  || options.composition || 'source-over';
          g.globalCompositeOperation = compositeOperation;//
      }
docs: Copies image styles from the specified style object to the canvas
  context.