đ ī¸Utility Functions
You can find some functions here that can help with quickly creating avatars or getting useful information.
def create_avatar()
Create a DAvatar object and return it.
Returns: a new
DAvatar
object
Parameter | Type | Default | Description |
---|---|---|---|
|
| ||
|
| Base string to determine the avatar. | |
|
| General options for the avatar. | |
|
| Customisations (for the chosen style) |
def create_random()
Create a random DAvatar object and return it.
Returns: a new
DAvatar
object
Parameter | Type | Default | Description |
---|---|---|---|
|
| Whether to use random (background) options for this avatar or not |
def bulk_create()
Create a list of DAvatar
objects (with random seeds).
Returns:
list[DAvatar]
: a list ofDAvatar
objects
Last updated