Mix together two Color3 values?

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


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

  1. Convert from RGB to a perceptually uniform color space
  2. Lerp in that color space
  3. Convert back to RGB
  4. Avoid Color3:lerp at all costs