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

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback