Lerp Using HSV (LinearColor)

Lerp Using HSV (LinearColor)

Windows
MacOS
Linux

Linearly interpolates between two colors by the specified Alpha amount (100% of A when Alpha=0 and 100% of B when Alpha=1). The interpolation is performed in HSV color space taking the shortest path to the new color's hue. This can give better results than a normal lerp, but is much more expensive. The incoming colors are in RGB space, and the output color will be RGB. The alpha value will also be interpolated.

Target is Kismet Math Library

Lerp Using HSV (LinearColor)
A
B
Alpha
0.0
Return Value

Inputs

A
Linear Color Structure

The color and alpha to interpolate from as linear RGBA

B
Linear Color Structure

The color and alpha to interpolate to as linear RGBA

Alpha
Float

Scalar interpolation amount (usually between 0.0 and 1.0 inclusive)

Outputs

Return Value
Linear Color Structure

The interpolated color in linear RGB space along with the interpolated alpha value

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss