Skip to main content

MagicPuzzleTransitionToColor

Callable

  • MagicPuzzleTransitionToColor(startingColor: string, targetColor: string, progressPercentage: number): string

  • Adjust one colour to be closer to another


    Parameters

    • startingColor: string

      Hex code of the starting colour

    • targetColor: string

      Hex code of the colour to transition to

    • progressPercentage: number

      The percentage the colour should transition, with 0 = none and 1 = fully

    Returns string

    • The final composed colour