How would I be able to mix together two Color3 values, and obtain the Color3 value of the mixed result?
For example, blending blue and yellow should make green. (0,0,255) + (255,255,0)
I’ve tried searching it up online, but I can’t seem to find a way.
There probably is a simple way using math or something, I just can’t think of it.
1 Like
Welp, you can use a bit of Color3Lerp
Color1:lerp(Color2,alpha)
the alpha value represents the percentage between the two that you want the color to be, for example, if you wanted it to be halfway in between the two, you can do
Color1:lerp(Color2,0.5)
6 Likes
Fractality
(Fractality)
August 29, 2019, 10:33pm
#3
Convert from RGB to a perceptually uniform color space
Lerp in that color space
Convert back to RGB
Avoid Color3:lerp at all costs
https://devforum.roblox.com/t/cieluv-interpolator/27100
2 Likes