add representation for Source object

This commit is contained in:
Pim Nelissen
2026-01-27 19:46:03 +01:00
parent c6c92e8f0d
commit 8d8826a649

View File

@ -35,4 +35,7 @@ class Source(Object):
super().__init__(x, y, z, name, color)
self.strength = strength
self.color = color
self.color = color
def __repr__(self):
return f"Source(name={self.name}, strength={self.strength}, pos={(self.x, self.y, self.z)})"