Files
ridebus-website/utils/smooth.ts
2024-03-20 00:12:01 +03:00

3 lines
129 B
TypeScript

export const smooth = (value: number, target: number, smoothing: number) => {
return value - (value - target) * smoothing;
};