Skip to content

Commit e2d22e7

Browse files
authored
Update colors.js
Fixed black + white = gray instead of white
1 parent f69caa9 commit e2d22e7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/js/game/colors.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,9 @@ for (const color in enumColors) {
155155

156156
// Anything with white is white again
157157
enumColorMixingResults[color][c.white] = c.white;
158+
159+
// Black mixed with white is gray
160+
enumColorMixingResults[c.black][c.white] = c.uncolored;
158161

159162
// Anything with uncolored is the same color
160163
enumColorMixingResults[color][c.uncolored] = color;

0 commit comments

Comments
 (0)