Callbacks¶
|
Details¶
- Shumate.VectorSpriteFallbackFunc(sprite_sheet, name, scale, *user_data)¶
- Parameters:
sprite_sheet (
Shumate.VectorSpriteSheet
) – the [class`VectorSpriteSheet`]name (
str
) – the name of the sprite to generatescale (
float
) – the scale factor of the spriteuser_data (
object
orNone
) – user data passed to [method`VectorSpriteSheet`.set_fallback]
- Returns:
a [class`VectorSprite`] or
None
- Return type:
A function to generate sprites for a [class`VectorSpriteSheet`].
See [method`VectorSpriteSheet`.set_fallback].
New in version 1.1.