Callbacks

VectorSpriteFallbackFunc (sprite_sheet, name, scale, *user_data)

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 generate

  • scale (float) – the scale factor of the sprite

  • user_data (object or None) – user data passed to [method`VectorSpriteSheet`.set_fallback]

Returns:

a [class`VectorSprite`] or None

Return type:

Shumate.VectorSprite or None

A function to generate sprites for a [class`VectorSpriteSheet`].

See [method`VectorSpriteSheet`.set_fallback].

New in version 1.1.