sge.Background

class sge.Background(layers, color, id_=None, **kwargs)

Background class.

This class stores the layers that make up the background (which contain the information about what images to use and where) as well as the color to use where no image is shown.

Attributes:

  • color – The color used in parts of the background where no layer is shown.

Read-Only Attributes:

  • id – The unique identifier for this background.
  • layers – A tuple containing all sge.BackgroundLayer objects used in this background.

sge.Background Methods

Background.__init__(layers, color, id_=None, **kwargs)

Create a background with the given color and layers.

Arguments:

  • id – The unique identifier of the sprite. If set to None, SGE chooses the value.

All other arguments set the respective initial attributes of the background. See the documentation for Background for more information.

Table Of Contents

Previous topic

sge.BackgroundLayer

Next topic

sge.Sound

This Page