@revideo/2d / decorators / interpolation
Function: interpolation()
interpolation<
T>(value):PropertyDecorator
Defined in: 2d/src/lib/decorators/signal.ts:188
Create a signal interpolation function decorator.
Type Parameters
T
T
Parameters
value
InterpolationFunction<T>
The interpolation function for the property.
Returns
PropertyDecorator
Remarks
This decorator specifies the interpolation function of a property. The interpolation function is used when tweening between different values.
Must be specified before the signal decorator.
Example
class Example {
\@interpolation(textLerp)
\@property()
public declare text: Signal<string, this>;
}