Color3 LerpRoblox@lune/roblox✎
Blends in RGB, which is what the engine does. Fading through HSV instead means converting, lerping the hue, and converting back.
Pending review
- Roblox's, and Lune's too — a Lune graph needs
@lune/robloxrequired for it - pure — no execution pins, wire it anywhere
- names its result — Result name in the Inspector is the local it binds, and a Declare Local reading that result makes a second one: see Variables and locals
Inputs
- A:Color3=
Color3.new(1, 1, 1)splittableSplits into R, G, B. - B:Color3=
Color3.new(1, 1, 1)splittableSplits into R, G, B. - Alpha:number=
0.5
Outputs
- result:Color3splittableSplits into R, G, B.
What it compiles to
luau
print(Color3.new(1, 1, 1):Lerp(Color3.new(1, 1, 1), 0.5))
Not reviewed yet