Skip to content
Snippets Groups Projects
Commit 2ceb6044 authored by Egli Adrian (IT-SCI-API-PFI)'s avatar Egli Adrian (IT-SCI-API-PFI)
Browse files

pil rendering bug fix

parent 238b9fd5
No related branches found
No related tags found
No related merge requests found
......@@ -127,7 +127,7 @@ class Demo:
self.action_size = 4
def create_renderer(self):
self.renderer = RenderTool(self.env, gl="QTSVG")
self.renderer = RenderTool(self.env, gl="PILSVG")
handle = self.env.get_agent_handles()
return handle
......
......@@ -351,7 +351,7 @@ class PILSVG(PILGL):
rgbaZug3[xy_color_mask, 0:3] = tnNewColor
self.dPilZug[(iDirIn2, iDirOut2, iColor)] = Image.fromarray(rgbaZug3)
def setAgentAt(self, iAgent, row, col, iDirIn, iDirOut):
def setAgentAt(self, iAgent, row, col, iDirIn, iDirOut, color=None):
delta_dir = (iDirOut - iDirIn) % 4
iColor = iAgent % self.nAgentColors
# when flipping direction at a dead end, use the "iDirOut" direction.
......
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