Skip to content

Commit 87fae3a

Browse files
committed
added __repr__ to Color and removed __str__.
1 parent 60908e8 commit 87fae3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ursina/color.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class Color(Vec4):
1414
def __init__(self,*p):
1515
super().__init__(*p)
1616

17-
def __str__(self):
17+
def __repr__(self):
1818
return f'Color({self[0]}, {self[1]}, {self[2]}, {self[3]})'
1919

2020
@property

0 commit comments

Comments
 (0)