code: 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;
      }
docs: Copies fill styles from the specified style object to the canvas context.