Try it in your browserpreview Source

Color3 To RGBRoblox@lune/roblox✎

Rounded to whole 0-255 channels. Round-tripping through this is lossy; To RGB Float is not.

Pending review

Color3 To RGBRColor3.new(1, 1, 1)ColourGB
  • Roblox's, and Lune's too — a Lune graph needs @lune/roblox required 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)splittable
    Splits 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