• Darkens a HEX color given the passed percentage

    Parameters

    • color: string

      The color to process

    • amount: number

      The amount to change the color by

    Returns string

    The HEX representation of the processed color