As a developer, it’s annoying and visually noisy to constantly write out commonly-used Color3 values. I want constants added to the Color3 library that make it easy to read and write these values.
I think this would be a good addition but we are likely not to see it.
If you truly want it right now you could use this quick thing I made.
local usebrickcolor = true
local old = Color3
local Color3 = setmetatable({
Red = Color3.new(1,0,0)
},{
__index = function(self,index)
local temp = self[index]
if type(index) == "string" then
return temp or BrickColor.new(index).Color
end
return temp
end
})
for i,v in old do
Color3[i] = v
end
table.freeze(Color3)
print(Color3.Red) --> Color3.new(1,0,0)```
Sorry if it's not what you're looking for
Out of curiosity, how often are you using fixed colors outside of black and white? In my experience pure reds and such are usually not what you want unless you’re doing shader things that we don’t have.
I usually use bright red/green for stuff like debug parts/guis when I just need a distinct color that stands out. Having the RGB as separate constants would definitely go a long way.
Not sure if I support all the colors here (possible API pollution?), but I find myself changing the color of something to Color3(1,1,1) (white) or Color3(0,0,0) (black) through code quite often, and was surprised to see these don’t exist as constants.
Black is okay to type out, Color3.new(), but getting solid white takes an extra step for something used a lot as well, Color3.new(1,1,1) / Color3.fromRGB(255,255,255). Sounds like I’m being lazy, but for something used this often, it would be a nice convenience to have.
Color3.white and Color3.black would make this process a lot easier, and likely faster…?