• Given an RGBA encoded number, returns back the RGBA number with it's alpha component multiplied by the passed alpha parameter.

    Parameters

    • rgba: number

      RGBA encoded number

    • alpha: number

      Normalized alpha value (Range: 0.0 - 1.0)

    Returns number

    This method does NOT premultiply the alpha into the color channels. If that is required (for internal use only) use mergeColorAlphaPremultiplied instead.