turbodombuilder - v0.9.22
    Preparing search index...

    Function bestOverlayColor

    • Parameters

      • baseColor: string

        The base color in Hex format.

      • OptionaloverlayColor1: string = "#000000"

        The first overlay color to evaluate in Hex format. Defaults to black.

      • OptionaloverlayColor2: string = "#FFFFFF"

        The second overlay color to evaluate in Hex format. Defaults to white.

      Returns string

      Evaluates the best color out of two provided options to put on top of a base color in terms of contrast (for readability).