function addColor(context, rootObject, params) {

  if (String(rootObject.firstLayer().class()) === 'MSBitMapLayer') return

  removeColor(context, rootObject);

  if (params.colorSource === 'sharedStyle') {
    svgProvider.cleanSvg(rootObject)
    sharedStyles.applySharedStyle(context, rootObject, params);
  } else if (utils.svgHasStroke(rootObject)) {
    applyColor(rootObject, params);
  } else {
    svgProvider.cleanSvg(rootObject)
    applyMask(context, rootObject, params)
  }

  return registerColor(context, rootObject, params)
}
@name addColor
@description index function for all step to add mask and convert artboard to symbol at end
@param context {Object}
@param rootObject {Object} : MSArtboardGroup && MSSymbolMaster
@param params {Object}