Skip to content
Snippets Groups Projects
Commit ca42a665 authored by hagrid67's avatar hagrid67
Browse files

added transparency / opacity with PIL.

moved test_player.py to using PIL and tkinter instead of QT
parent a415c73c
No related branches found
No related tags found
No related merge requests found
...@@ -605,8 +605,6 @@ class RenderTool(object): ...@@ -605,8 +605,6 @@ class RenderTool(object):
"rot:", rotation, "rot:", rotation,
) )
def renderEnv( def renderEnv(
self, show=False, curves=True, spacing=False, self, show=False, curves=True, spacing=False,
arrows=False, agents=True, obsrender=True, sRailColor="gray", frames=False, arrows=False, agents=True, obsrender=True, sRailColor="gray", frames=False,
...@@ -627,10 +625,6 @@ class RenderTool(object): ...@@ -627,10 +625,6 @@ class RenderTool(object):
iSelectedAgent, action_dict) iSelectedAgent, action_dict)
return 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): if type(self.gl) in (QTGL, PILGL):
self.gl.beginFrame() self.gl.beginFrame()
...@@ -644,13 +638,8 @@ class RenderTool(object): ...@@ -644,13 +638,8 @@ class RenderTool(object):
# if oFigure is None: # if oFigure is None:
# oFigure = self.gl.figure() # oFigure = self.gl.figure()
env = self.env env = self.env
# t1 = time.time()
self.renderRail() self.renderRail()
# Draw each agent + its orientation + its target # Draw each agent + its orientation + its target
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment