~~interpolateFactory()~~
interpolateFactory(
interpolationType
:"number"
|"color"
|"padding"
|"array"
|"variableAnchorOffsetCollection"
): <T
>(from
:T
,to
:T
,t
:number
) =>T
| (from
:number
,to
:number
,t
:number
) =>number
| (from
:Color
,to
:Color
,t
:number
,spaceKey
:InterpolationColorSpace
) =>Color
| (from
:Padding
,to
:Padding
,t
:number
) =>Padding
| (from
:VariableAnchorOffsetCollection
,to
:VariableAnchorOffsetCollection
,t
:number
) =>VariableAnchorOffsetCollection
Parameters
Parameter | Type | Description |
---|---|---|
interpolationType
| "number" | "color" | "padding" | "array" | "variableAnchorOffsetCollection"
| Interpolation type |
Returns
<T
>(from
: T
, to
: T
, t
: number
) => T
| (from
: number
, to
: number
, t
: number
) => number
| (from
: Color
, to
: Color
, t
: number
, spaceKey
: InterpolationColorSpace
) => Color
| (from
: Padding
, to
: Padding
, t
: number
) => Padding
| (from
: VariableAnchorOffsetCollection
, to
: VariableAnchorOffsetCollection
, t
: number
) => VariableAnchorOffsetCollection
interpolation fn