code: function _setStyle(canvas, ctx, params, styleName) {
  	if (params[styleName]) {
  		if (isFunction(params[styleName])) {
  			// Handle functions
  			ctx[styleName] = params[styleName].call(canvas, params);
  		} else {
  			// Handle string values
  			ctx[styleName] = params[styleName];
  		}
  	}
  }
docs: Set the style with the given name