Browse Source

Update to the new colours.

pull/42/merge
Rapptz 9 years ago
parent
commit
9fb2186785
  1. 116
      discord/colour.py

116
discord/colour.py

@ -84,104 +84,104 @@ class Colour(object):
return cls(0) return cls(0)
@classmethod @classmethod
def cyan(cls): def teal(cls):
"""A factory method that returns a :class:`Colour` with a value of 0x1abc9c.""" """A factory method that returns a :class:`Colour` with a value of ``0x1abc9c``."""
return cls(0x1abc9c) return cls(0x1abc9c)
@classmethod @classmethod
def green(cls): def dark_teal(cls):
"""A factory method that returns a :class:`Colour` with a value of 0x2ecc71.""" """A factory method that returns a :class:`Colour` with a value of ``0x11806a``."""
return cls(0x2ecc71) return cls(0x11806a)
@classmethod
def blue(cls):
"""A factory method that returns a :class:`Colour` with a value of 0x3498db."""
return cls(0x3498db)
@classmethod
def purple(cls):
"""A factory method that returns a :class:`Colour` with a value of 0x9b59b6."""
return cls(0x9b59b6)
@classmethod @classmethod
def yellow(cls): def green(cls):
"""A factory method that returns a :class:`Colour` with a value of 0xf1c40f.""" """A factory method that returns a :class:`Colour` with a value of ``0x2ecc71``."""
return cls(0xf1c40f) return cls(0x2ecc71)
@classmethod @classmethod
def orange(cls): def dark_green(cls):
"""A factory method that returns a :class:`Colour` with a value of 0xe67e22.""" """A factory method that returns a :class:`Colour` with a value of ``0x1f8b4c``."""
return cls(0xe67e22) return cls(0x1f8b4c)
@classmethod @classmethod
def red(cls): def blue(cls):
"""A factory method that returns a :class:`Colour` with a value of 0xe74c3c.""" """A factory method that returns a :class:`Colour` with a value of ``0x3498db``."""
return cls(0xe74c3c) return cls(0x3498db)
@classmethod @classmethod
def grey(cls): def dark_blue(cls):
"""A factory method that returns a :class:`Colour` with a value of 0x95a5a6.""" """A factory method that returns a :class:`Colour` with a value of ``0x206694``."""
return cls(0x95a5a6) return cls(0x206694)
@classmethod @classmethod
def dark_grey(cls): def purple(cls):
"""A factory method that returns a :class:`Colour` with a value of 0x7f8c8d.""" """A factory method that returns a :class:`Colour` with a value of ``0x9b59b6``."""
return cls(0x7f8c8d) return cls(0x9b59b6)
@classmethod @classmethod
def navy_blue(cls): def dark_purple(cls):
"""A factory method that returns a :class:`Colour` with a value of 0x34495e.""" """A factory method that returns a :class:`Colour` with a value of ``0x71368a``."""
return cls(0x34495e) return cls(0x71368a)
@classmethod @classmethod
def dark_cyan(cls): def magenta(cls):
"""A factory method that returns a :class:`Colour` with a value of 0x11806a.""" """A factory method that returns a :class:`Colour` with a value of ``0xe91e63``."""
return cls(0x11806a) return cls(0xe91e63)
@classmethod @classmethod
def dark_green(cls): def dark_magenta(cls):
"""A factory method that returns a :class:`Colour` with a value of 0x1f8b4c.""" """A factory method that returns a :class:`Colour` with a value of ``0xad1457``."""
return cls(0x1f8b4c) return cls(0xad1457)
@classmethod @classmethod
def dark_blue(cls): def gold(cls):
"""A factory method that returns a :class:`Colour` with a value of 0x206694.""" """A factory method that returns a :class:`Colour` with a value of ``0xf1c40f``."""
return cls(0x206694) return cls(0xf1c40f)
@classmethod @classmethod
def dark_purple(cls): def dark_gold(cls):
"""A factory method that returns a :class:`Colour` with a value of 0x71368a.""" """A factory method that returns a :class:`Colour` with a value of ``0xc27c0e``."""
return cls(0x71368a) return cls(0xc27c0e)
@classmethod @classmethod
def strong_orange(cls): def orange(cls):
"""A factory method that returns a :class:`Colour` with a value of 0xc27c0e.""" """A factory method that returns a :class:`Colour` with a value of ``0xe67e22``."""
return cls(0xc27c0e) return cls(0xe67e22)
@classmethod @classmethod
def dark_orange(cls): def dark_orange(cls):
"""A factory method that returns a :class:`Colour` with a value of 0xa84300.""" """A factory method that returns a :class:`Colour` with a value of ``0xa84300``."""
return cls(0xa84300) return cls(0xa84300)
@classmethod
def red(cls):
"""A factory method that returns a :class:`Colour` with a value of ``0xe74c3c``."""
return cls(0xe74c3c)
@classmethod @classmethod
def dark_red(cls): def dark_red(cls):
"""A factory method that returns a :class:`Colour` with a value of 0x992d22.""" """A factory method that returns a :class:`Colour` with a value of ``0x992d22``."""
return cls(0x992d22) return cls(0x992d22)
@classmethod @classmethod
def dark_grey_blue(cls): def lighter_grey(cls):
"""A factory method that returns a :class:`Colour` with a value of 0x979c9f.""" """A factory method that returns a :class:`Colour` with a value of ``0x95a5a6``."""
return cls(0x979c9f) return cls(0x95a5a6)
@classmethod
def dark_grey(cls):
"""A factory method that returns a :class:`Colour` with a value of ``0x607d8b``."""
return cls(0x607d8b)
@classmethod @classmethod
def light_grey(cls): def light_grey(cls):
"""A factory method that returns a :class:`Colour` with a value of 0xbcc0c0.""" """A factory method that returns a :class:`Colour` with a value of ``0x979c9f``."""
return cls(0xbcc0c0) return cls(0x979c9f)
@classmethod @classmethod
def dark_navy_blue(cls): def darker_grey(cls):
"""A factory method that returns a :class:`Colour` with a value of 0x2c3e50.""" """A factory method that returns a :class:`Colour` with a value of ``0x546e7a``."""
return cls(0x2c3e50) return cls(0x546e7a)
Color = Colour Color = Colour

Loading…
Cancel
Save