Lerp
Linearly interpolates between two values.
Usage
See: VectorToColor
start
start: Vec
Required
The starting value. Accepts a number, 1D, 2D, 3D or 4D vector.
Single Value number
1D Vector [number] | { x: number }
2D Vector [number, number] | { x: number, y: number }
3D Vector [number, number, number] | { x: number, y: number, z: number }
4D Vector [number, number, number, number] | { x: number, y: number, z: number, w: number }
end
end: Vec
Required
The ending value. Accepts a number, 1D, 2D, 3D or 4D vector.
Single Value number
1D Vector [number] | { x: number }
2D Vector [number, number] | { x: number, y: number }
3D Vector [number, number, number] | { x: number, y: number, z: number }
4D Vector [number, number, number, number] | { x: number, y: number, z: number, w: number }
progress
progress: number
Required
The interpolation value (ranges from 0
to 1
) between the two values.
Returns
Returns a value between the two values.