Color3 To RGBRoblox@lune/roblox✎
Rounded to whole 0-255 channels. Round-tripping through this is lossy; To RGB Float is not.
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
- Colour:Color3=
Color3.new(1, 1, 1)splittableSplits into R, G, B.
Outputs
- R:number
- G:number
- B:number
What it compiles to
luau
print(math.round(Color3.new(1, 1, 1).R * 255))
Not reviewed yet