layers

PP. layers

The namespace containing functions to manage layers
Source:

Methods

(static) add_to_layer(s, layer, obj)

Add an object to a layer
Source:
Parameters:
Name Type Description
s object The scene
layer object The destination layer
obj object The object to add to the layer.

(static) create(s)

Create a new empy layer
Source:
Parameters:
Name Type Description
s object The scene

(static) get_z_index(layer)

Get the depth (z-index) of the layer
Source:
Parameters:
Name Type Description
layer object The layer

(static) set_z_index(layer, z_index)

Set the depth (z-index) of the layer
Source:
Parameters:
Name Type Description
layer object The destination layer
z_index number The z-index.