function generateEffects(effectData, effectName) {
    var outData = '<a:' + effectName + ' '
    var color = effectData.color || 'black'
    var alphaPer = 60
    var algnData = ''
    var blurRad = 50800
    var dist = 38100
    var dir = 13500000

    if (typeof effectData.transparency === 'number') {
      alphaPer = effectData.transparency
    } // Endif.

    if (alphaPer > 100 || alphaPer < 0) {
      alphaPer = 60
    }

    alphaPer = (100 - alphaPer) * 1000

    if (effectData.align) {
      if (effectData.align.top) {
        algnData += 't'
      }

      if (effectData.align.bottom) {
        algnData += 'b'
      }

      if (effectData.align.left) {
        algnData += 'l'
      }

      if (effectData.align.right) {
        algnData += 'r'
      }
    } // Endif.

    if (algnData === '') {
      algnData = 'br'
    } // Endif.

    // Size
    // Blur
    // Angle
    // Distance
    // BMK_TODO:

    outData +=
      ' blurRad="' +
      blurRad +
      '" dist="' +
      dist +
      '" dir="' +
      dir +
      '" algn="' +
      algnData +
      '" rotWithShape="0"'

    // sx="24000" sy="24000"
    // BMK_TODO:

    outData +=
      '><a:prstClr val="' +
      color +
      '"><a:alpha val="' +
      alphaPer +
      '"/></a:prstClr>'
    return outData + '</a:' + effectName + '>'
  }
Create the XML code of a single effect.

This method creating the effect XML code for a single object.

@param {object} effectData Effect data.
@param {string} effectName The name of the effect.