BrickColor from ColourRoblox@lune/roblox✎
The nearest BrickColor to an arbitrary colour. Lossy, and deliberately so: the palette is fixed.
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
- result:BrickColor
What it compiles to
luau
print(BrickColor.new(Color3.new(1, 1, 1)))
Not reviewed yet