From ca42a665d331c9feb0f30eb1955df09c50f8ea15 Mon Sep 17 00:00:00 2001 From: hagrid67 <jdhwatson@gmail.com> Date: Sat, 18 May 2019 17:11:32 +0100 Subject: [PATCH] added transparency / opacity with PIL. moved test_player.py to using PIL and tkinter instead of QT --- flatland/utils/rendertools.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/flatland/utils/rendertools.py b/flatland/utils/rendertools.py index 4def953a..edfc704c 100644 --- a/flatland/utils/rendertools.py +++ b/flatland/utils/rendertools.py @@ -605,8 +605,6 @@ class RenderTool(object): "rot:", rotation, ) - - def renderEnv( self, show=False, curves=True, spacing=False, arrows=False, agents=True, obsrender=True, sRailColor="gray", frames=False, @@ -627,10 +625,6 @@ class RenderTool(object): iSelectedAgent, action_dict) return - # cell_size is a bit pointless with matplotlib - it does not relate to pixels, - # so for now I've changed it to 1 (from 10) - cell_size = 1 - if type(self.gl) in (QTGL, PILGL): self.gl.beginFrame() @@ -644,13 +638,8 @@ class RenderTool(object): # if oFigure is None: # oFigure = self.gl.figure() - - env = self.env - # t1 = time.time() - - self.renderRail() # Draw each agent + its orientation + its target -- GitLab