Add Colour.fuchsia and Colour.yellow

This commit is contained in:
Arnav Jindal 2021-05-15 11:37:45 +05:30 committed by GitHub
parent 9d114fb066
commit ee3e2944ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -288,4 +288,21 @@ class Colour:
"""
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