GradientHelper

Helper used to simplify some generic gradient tasks

Hierarchy

  • GradientHelper

Index

Methods

Static GetCurrentGradient

Find examples in Playground
  • GetCurrentGradient(ratio: number, gradients: IValueGradient[], updateFunc: function): void
  • Gets the current gradient from an array of IValueGradient

    Parameters

    • ratio: number

      defines the current ratio to get

    • gradients: IValueGradient[]

      defines the array of IValueGradient

    • updateFunc: function

      defines the callback function used to get the final value from the selected gradients

    Returns void

Generated using TypeDoc