The problem was that when a base model is grayscale, a mix operation with rgb would remain in the base model - i.e. remain in grayscale. So when mix or add executes, the "richer" color model ought to be used.
Suggestions welcome if my code should be structured better, I almost made a new sub to hold the model-switching logic. Are there more places that could benefit from this treatment?
Fixes #2407
The problem was that when a base model is grayscale, a
mix
operation withrgb
would remain in the base model - i.e. remain in grayscale. So whenmix
oradd
executes, the "richer" color model ought to be used.Suggestions welcome if my code should be structured better, I almost made a new
sub
to hold the model-switching logic. Are there more places that could benefit from this treatment?