Rename Colour.to_tuple to Colour.to_rgb.
This commit is contained in:
@ -93,7 +93,7 @@ class Colour:
|
||||
"""Returns the blue component of the colour."""
|
||||
return self._get_byte(0)
|
||||
|
||||
def to_tuple(self):
|
||||
def to_rgb(self):
|
||||
"""Returns an (r, g, b) tuple representing the colour."""
|
||||
return (self.r, self.g, self.b)
|
||||
|
||||
|
Reference in New Issue
Block a user