Module Stage :: Class Layer
[hide private]
[frames] | no frames]

Class Layer

source code

object --+
         |
        Layer

A graphical stage layer that can have a number of animation effects associated with it.

Instance Methods [hide private]
 
__init__(self, stage, drawing)
Constructor.
source code
 
render(self, visibility)
Render the layer.
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, stage, drawing)
(Constructor)

source code 
Constructor.
Parameters:
  • stage - Containing Stage
  • drawing - SvgDrawing for this layer. Make sure this drawing is rendered to a texture for performance reasons.
Overrides: object.__init__

render(self, visibility)

source code 
Render the layer.
Parameters:
  • visibility - Floating point visibility factor (1 = opaque, 0 = invisibile)