Getting the correct color for a Neon part

Hi y’all, I need help of getting the desired color that matches the same color as non-glowing parts.

I tried some workarounds like manually finding the correct color using the color palette but that’s just too time-consuming.

I want an easy and fast method. Anybody out there that could help?

2 Likes

Manually find the color using the color palette.

For a more automated/scripted approach, you can try taking the Color3 of a given BrickColor, converting it to HSV, and then multiplying the V by a certain factor to reduce the apparent brightness. This is admittedly quite rudimentary since it doesn’t account for perceptual brightness, but this should be good enough to get the job done.

local valueFactor = 0.85 -- This will darken the color to 85% of its original intensity
local brickColorToSample = BrickColor.new("Bright red")

-- Extract HSV from the BrickColor
local hueComponent, saturationComponent, valueComponent = brickColorToSample.Color:ToHSV()
local newValueComponent = valueComponent * valueFactor

-- Compose our new darkened color, and convert it back to a normal Color3 setup
local newColor = Color3.fromHSV(hueComponent, saturationComponent, newValueComponent)
-- You can then assign this by setting the Color attribute of any Part
2 Likes