static Color Lerp (in Color a, in Color b, float frac, bool clamped)

Parameters

NameTypeDescription
in a Color The source color.
in b Color The target color.
frac float Fraction to the target color. 0 will return source color, 1 will return target color, 0.5 will "mix" the 2 colors equally.
clamped = True bool Clamp fraction to range of [0,1]. If not clamped, the color will be extrapolated.

Returns

TypeDescription
Color The interpolated color.
Declared in Color ยท Assembly Sandbox.System
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.