Skip to content
Deviant edited this page Mar 16, 2024 · 9 revisions

Additional functions and capabilities will be described here.

Q: How to save animation?

You can use save_gif() function you can save in 2 ways and 2 formats. | Example

  • Pillow method supports formats: webp and gif
  • Moviepy: method only supports gif

Argument:

  • type - pillow or moviepy | Type: str | Default: pillow
  • format - gif or webp | Type: str | Default: gif
  • name_file - Name of the saved file. | Type: str | Default: None
  • resize - Reduce card size. | Type: tuple | Default: None

Q: How do I display the card?

You can use the show() method on the Pillow image itself, or you can use the show() method on the card model | Example

Q: How to get information about a character on a card?

Use the get_info() model function | Example

Argument:

Q: How to get the id and name of the characters or the Name of the character and his id in the form of a dictionary?

After generation use the function: get_charter() | Example

Argument:

  • setting - Will return only the data you specified in the Card() class | Type: bool | Default: None
  • name - Will return a dictionary where the key is names | Type: bool | Default: None
Clone this wiki locally