Methods
Static getColorAtOffset
- getColorAtOffset(colors: Color[], offsets: number[], targetOffset: number): Color
-
Parameters
-
-
offsets: number[]
-
targetOffset: number
Static getColorFromRange
- getColorFromRange(colors: Color[], min: number, max: number, value: number): Color
-
Parameters
-
-
min: number
-
max: number
-
value: number
Static getLinearGradientPoints
- getLinearGradientPoints(count: number): number[]
-
Parameters
Returns number[]
Static interpolate
- interpolate(start: number, end: number, factor: number): number
-
Parameters
-
start: number
-
end: number
-
factor: number
Returns number