LaTeXML icon indicating copy to clipboard operation
LaTeXML copied to clipboard

avoid using grayscale base when mixing richer colors

Open dginev opened this issue 1 year ago • 0 comments

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?

dginev avatar Aug 25 '24 22:08 dginev