Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/sfml/graphics/graphics.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ cdef public class Color [type PyColorType, object PyColorObject]:
del self.p_this

def __repr__(self):
return "Color(red={0}, green={1}, blue={2}, alpha={3})".format(self.r, self.g, self.b, self.a)
return "Color(r={0}, g={1}, b={2}, a={3})".format(self.r, self.g, self.b, self.a)

def __str__(self):
return "(R={0}, G={1}, B={2}, A={3})".format(self.r, self.g, self.b, self.a)
Expand Down