Appearance.Costume

The ‘Costume’ class is a child classes of the ‘Appearance’ class.

classDiagram Appearance <|-- Costume Appearance <|-- Background Token o-- Appearance class Token{ +add_costume() } class Appearance{ +add_image(str) } class Costume{ } class Background{ }

Important

Since costumes are bound to tokens, you don’t need to instantiate costume objects directly. Instead use token.add_costume()

Costume

class miniworldmaker.appearances.costume.Costume(*args, **kwargs)[source]

A costume contains one or multiple images

Every token has a costume which defines the “look” of the token. You can switch the images in a costume to animate the token.

A costume is created if you add an image to an actor with token.add_image(path_to_image)

parent

the parent of a costume is the associated token.