Fix color mixing

This commit is contained in:
tobspr 2020-07-07 13:17:25 +02:00
parent f69caa9f1a
commit a41a7099e6
1 changed files with 4 additions and 2 deletions

View File

@ -153,8 +153,10 @@ export const enumColorMixingResults = {
for (const color in enumColors) {
enumColorMixingResults[color][color] = color;
// Anything with white is white again
enumColorMixingResults[color][c.white] = c.white;
// Anything with white is white again, except for black which creates gray
if (color !== enumColors.black) {
enumColorMixingResults[color][c.white] = c.white;
}
// Anything with uncolored is the same color
enumColorMixingResults[color][c.uncolored] = color;