Rename Colour.to_tuple to Colour.to_rgb.

This commit is contained in:
Rapptz
2017-05-15 03:40:27 -04:00
parent 6f53491f9a
commit 7a84661312
2 changed files with 6 additions and 1 deletions

View File

@ -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)