get_sprite


Description:

public VectorSprite? get_sprite (string name, double scale)

Gets a sprite from the spritesheet.

The returned sprite might not be at the requested scale factor if an exact match is not found.

Parameters:

this

a [class@VectorSpriteSheet]

name

an icon name

scale

the scale factor of the icon

Returns:

a [class@VectorSprite], or null if the icon does not exist.