mirror of
				https://github.com/tobspr/shapez.io.git
				synced 2025-06-13 13:04:03 +00:00 
			
		
		
		
	Fix color mixing
This commit is contained in:
		
							parent
							
								
									f69caa9f1a
								
							
						
					
					
						commit
						a41a7099e6
					
				@ -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;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user