Fixes for newer numpy version
numpy.int was deprecated in numpy 1.20, using numpy.int32 instead
This commit is contained in:
		@@ -57,8 +57,8 @@ colors = np.array([
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
colors = np.reshape(colors, (colors.size//3, 3))
 | 
					colors = np.reshape(colors, (colors.size//3, 3))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
grid = np.zeros((Ny,Nx), dtype=np.int)
 | 
					grid = np.zeros((Ny,Nx), dtype=np.int32)
 | 
				
			||||||
gridout = np.zeros((Ny,Nx), dtype=np.int)
 | 
					gridout = np.zeros((Ny,Nx), dtype=np.int32)
 | 
				
			||||||
grid[0,:].fill(colors.shape[0]-1)
 | 
					grid[0,:].fill(colors.shape[0]-1)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
clock = pygame.time.Clock()
 | 
					clock = pygame.time.Clock()
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user