Skip to content

The Stage class

PPPDUD edited this page Apr 7, 2026 · 3 revisions

The Stage class corresponds to a stage in a Snap! project; here are its properties.

name property

The name property is a string containing the name of the stage; by default, this is usually set to Stage.

width property

The width of the stage.

height property

The height of the stage.

costume property

The costume number of the stage.

color property

A tuple representing the RGBA color of the stage.

tempo property

A number representing the musical tempo of the stage.

threadsafe property

The value of the "thread safe scripts" setting.

penlog property

The value of the "log pen vectors" setting.

volume property

The audio volume of the stage.

pan property

The audio pan of the stage.

lines property

"Flat" if "flat line ends" is enabled, otherwise "round".

ternary property

Whether or not ternary boolean slots are enabled.

hyperops property

Whether or not hyperblocks support is enabled.

codify property

Whether or not codification is enabled.

inheritance property

Whether or not sprite inheritance is enabled.

sublist_ids property

Usage unknown; if you can figure out what this does, please open an issue!

id property

Some sort of internal ID.

pentrails property

A base-64 URI string representing the pentrails on the stage.

sprites property

A list of Sprite objects that use this stage.

costumes property

A list of Costume objects that belong to the stage.

sounds property

A list of Sound objects that belong to the stage.

watchers property

A list of Watcher objects that are visible on the stage.

Clone this wiki locally