Adding and Subtracting Color3?

It seems that I cannot add Color3 onto another Color3 value, like I can with Vector3. Is there a workaround that allows me to do this?

3 Likes
local color1 = Color3.new(0.5, 0.5, 0.5)
local color2 = Color3.new(0.5, 0.5, 0.5)
local color3 = Color3.new(color1.R+color2.R, color1.G+color2.G, color1.B+color2.B)
print(color3)
--output is 1, 1, 1 as expected

The .R, .G and .B properties of Color3 values can be used in arithmetic operations.

1 Like