Add Colour.fuchsia and Colour.yellow
This commit is contained in:
parent
9d114fb066
commit
ee3e2944ba
@ -288,4 +288,21 @@ class Colour:
|
|||||||
"""
|
"""
|
||||||
return cls(0x36393F)
|
return cls(0x36393F)
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def fuchsia(cls: Type[CT]) -> CT:
|
||||||
|
"""A factory method that returns a :class:`Colour` with a value of ``0xB459E``.
|
||||||
|
|
||||||
|
.. versionadded:: 2.0
|
||||||
|
"""
|
||||||
|
return cls(0xEB459E)
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def yellow(cls: Type[CT]) -> CT:
|
||||||
|
"""A factory method that returns a :class:`Colour` with a value of ``0xFEE75C``.
|
||||||
|
|
||||||
|
.. versionadded:: 2.0
|
||||||
|
"""
|
||||||
|
return cls(0xFEE75C)
|
||||||
|
|
||||||
|
|
||||||
Color = Colour
|
Color = Colour
|
||||||
|
Loading…
x
Reference in New Issue
Block a user