Class GradientHelper
Hierarchy
- GradientHelper
Index
Constructors
Methods
Constructors
constructor
Returns GradientHelper
Methods
Static Get Current GradientSearch playground for GetCurrentGradient
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: ((current: IValueGradient, next: IValueGradient, scale: number) => void)
defines the callback function used to get the final value from the selected gradients
Parameters
current: IValueGradient
next: IValueGradient
scale: number
Returns void
Returns void
Helper used to simplify some generic gradient tasks