Function adaptDynamicColorToBgColor

  • Adapts the text color for a given background color

    Parameters

    • node: HTMLElement

      the node containing the text

    • bgColor: string

      as #ff0000

    • title: string

      the title to render

    • width: number

      for which percentages of the cell this background applies (0..1)

    Returns void