You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The brown I get by adding Red, Blue and Yellow is different depending on how I add them.
If I add them all at once, I get the color on the left.
If I blend Yellow and Red (1/2), then blend that to blue (1/3), I get the color on the right.
All at once:
var z1 = Mixbox.rgb_to_latent(Color(1,1,0,1))
var z2 = Mixbox.rgb_to_latent(Color(1,0,0,1))
var z3 = Mixbox.rgb_to_latent(Color(0,0,1,1))
var z_mix = []
z_mix.resize(Mixbox.LATENT_SIZE)
for i in z_mix.size():
z_mix[i] = (1.0/3.0*z1[i] +
1.0/3.0*z2[i] +
1.0/3.0*z3[i])
color_mix = Mixbox.latent_to_rgb(z_mix)
Here's another attempt with two blends, this time doing R+B, then that +Y:
(note the brown on the right is different from both, the all-at-once mix on the left, and the previous 2-step blend)
The text was updated successfully, but these errors were encountered:
I believe that this is because while RGB -> LATENT -> RGB usually gives the same RGB value as the one you started with, LATENT -> RGB -> LATENT does not.
When doing all three in latent space you get only one traversal of this conversion: RGB -> LATENT -> RGB
When you mix 2 followed by the third, you get two traversals of this conversion: RGB -> LATENT -> RGB -> LATENT-> RGB
It is this extra conversion that seems to add an error to the calculations.
I don't know if this behavior is due to an error in the latent_to_rgb or rgb_to_latent code or if it is just inherent to the calculation method used...
The brown I get by adding Red, Blue and Yellow is different depending on how I add them.
If I add them all at once, I get the color on the left.
If I blend Yellow and Red (1/2), then blend that to blue (1/3), I get the color on the right.
All at once:
In two blends:
Here's another attempt with two blends, this time doing R+B, then that +Y:
(note the brown on the right is different from both, the all-at-once mix on the left, and the previous 2-step blend)
The text was updated successfully, but these errors were encountered: