You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Sprite class defines a Snap! sprite; here are its properties:
data property
The data property is a dictionary containing internal information about the sprite. Its contents are not guaranteed to be consistent across versions or project files, so it should not be used in production code.
name property
The name of the sprite.
idx property
Usage unknown; some sort of internal ID.
x property
X coordinate of the sprite.
y property
Y coordinate of the sprite.
heading property
The direction of the sprite in degrees.
scale property
The scale value of the sprite.
volume property
The audio volume of the sprite.
pan property
The audio pan of the sprite.
rotation property
A number representing the sprite's rotation style.
instrument property
A value representing the sprite's current instrument; None if no such value was specified in the project.
draggable property
A boolean representing the draggability of the sprite.
hidden property
Whether or not the sprite is visible; may be None.
costume property
The costume number of the sprite.
color property
A tuple representing the pen color of the sprite in RGBA format.