@tempots/color

distanceFromOriginAngle() function

lerp performs a linear interpolation between two values.

Signature:

distanceFromOriginAngle: (slope: number, intercept: number, angle: number) => number

Parameters

Parameter

Type

Description

slope

number

intercept

number

angle

number

Returns: number

The interpolated value.