LaTeXML
LaTeXML copied to clipboard
avoid using grayscale base when mixing richer colors
Fixes #2407
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?