mirror of
https://github.com/pim-n/pg-rad
synced 2026-02-02 14:33:09 +01:00
add representation for Source object
This commit is contained in:
@ -36,3 +36,6 @@ class Source(Object):
|
|||||||
|
|
||||||
self.strength = strength
|
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)})"
|
||||||
Reference in New Issue
Block a user