Tween
Tween animation for smooth transitions between two values.
Functions
tween<T>(
value: Signal<T>,
to: T,
duration: number,
timing?: TimingFunction,
interpolation?: InterpolationFunction<T>
): ThreadGenerator
Examples
import {tween} from '@wangyaoshen/locus';
yield * tween(circle().position, new Vector2(200, 0), 1);