From 76daf3f4522524fd1cb5486d33c2f4f755189143 Mon Sep 17 00:00:00 2001 From: leo Date: Tue, 8 Feb 2022 09:08:38 +0100 Subject: [PATCH] =?UTF-8?q?degag=C3=A9=20matplotlib?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CarController.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/CarController.py b/CarController.py index d17a122..8e16d0d 100644 --- a/CarController.py +++ b/CarController.py @@ -1,6 +1,5 @@ import sumolib from Car import Car -from matplotlib import cm class CarController: def __init__(self,path,parentMap,surface): @@ -18,8 +17,6 @@ class CarController: car.update(1.0/60) def draw(self,screen): - cmap = cm.get_cmap('Spectral') - for ind,car in enumerate(self.cars): - color=cmap(ind/len(self.cars)) - car.draw([a*255 for a in color[0:3]]) + for car in self.cars: + car.draw((255,255,255)) screen.blit(self.surf,(0,0))