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.
Welp, you can use a bit of Color3Lerp
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
- Convert from RGB to a perceptually uniform color space
- Lerp in that color space
- Convert back to RGB
- Avoid Color3:lerp at all costs