Skip to content

Latest commit

 

History

History
44 lines (28 loc) · 1.36 KB

sillycat.md

File metadata and controls

44 lines (28 loc) · 1.36 KB

SillyCat

Represents a silly cat image.

Attributes

SillyCatPosition

Represents a class holding the colours of a SillyCat.

Attributes

  • hex (str):
    The hexadecimal code representing the colour.

  • colour_name (str):
    The human-readable name of the colour. This is only set if random was True. To retrieve the name, use fetch_colour_name.

  • image (Image):
    An Image object created from the unparsed image URL.

  • simple_image (Image):
    The simple image of the silly cat, available as a URL using only the left hex colour.

  • complex_image (Image):
    The complex image of the silly cat, available as a URL using both left and right hex colours.

Methods

  • await fetch_colour_name()

    Fetches the name of the colour from the colour endpoint.

    Returns

    • str: The name of the colour.