Skip to content

Latest commit

 

History

History
38 lines (28 loc) · 1.71 KB

sillycat.md

File metadata and controls

38 lines (28 loc) · 1.71 KB

AlexFlipnote.py Docs | Models/SillyCat

SillyCat

Represents a silly cat image.

Attribute


SillyCatPosition

Represents a class holding the colours of a SillyCat.

Attributes

  • hex str - The hex code of the colour.
  • colour_name str - The name of the colour. This is only available if randomwas set to True. Use fetch_colour_name to call the colour endpoint for the name.
  • image Image - Returns an Image object constructed from the unparsed URL of the image.
  • simple_image Image - The simple image of the sillycat if available. This is a url with only the left hex colour.
  • complex_image Image - The complex image of the sillycat if available. This is a url with both left and right hex colours.

Methods


await fetch_colour_name() -> str

Fetches the name of the colour from the colour endpoint.