Skip to main content

lerp

Node Type ID: "studio.tokens.math.lerp"

Package

This is a core package available at Graph Engine

To install

npm install @tokens-studio/graph-engine

Description

Lerp (linear interpolation) calculates a value between two numbers, A and B, based on a fraction t. For t = 0 returns A, for t = 1 returns B. It's widely used in graphics and animations for smooth transitions.

Inputs

a

No description

b

No description

t

No description

Outputs

value

No description

Example

No examples