• Adjusts a color's brightness by a number value

    Returns

    The color input adjusted by amt value, or undefined if string is invalid

    Parameters

    • col: string

      Color to be adjusted, as a 6-character hexadecimal string

    • amt: number

      Amount to adjust by, positive values create a brighter color and negative values create a dimmer color

    Returns string | undefined

Generated using TypeDoc