Box for tracker instead of filled rectangle

This commit is contained in:
Ruben van de Ven 2024-10-04 19:24:49 +02:00
parent 55efb524b9
commit a877e1cc12

View file

@ -100,7 +100,7 @@ class Canvas:
for i, field in enumerate(dataclasses.fields(self.params)):
self.labels[field.name] = pyglet.text.Label(f"{field.name}: {field.default}", x=20, y=30 + 15*(i+1), color=(255,255,255,255), batch=self.renderer.batch_info)
self.track_shapes = defaultdict(lambda: pyglet.shapes.Rectangle(0,0,0,0,(0,255,0),batch=self.renderer.batch_bounding_boxes))
self.track_shapes = defaultdict(lambda: pyglet.shapes.Box(0,0,0,0,color=(0,255,0),thickness=2, batch=self.renderer.batch_bounding_boxes))
self.renderer.window.set_handler('on_refresh', self.on_refresh)