### Navigation

- index
- next |
- previous |
- Pygame SGE 0.7.0 documentation »
- Classes »

# sge.Background

class `sge.``Background`(layers, color, ID=None)

  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.

  `color`

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

  `id`

    The unique identifier for this background. (Read-only)

  `layers`

    A tuple containing all `sge.BackgroundLayer` objects used in this background. (Read-only)

## sge.Background Methods

`Background.``__init__`(layers, color, ID=None)

  Constructor method.

  Arguments:

  - `ID` – The value to set `id` to. If set to `None`, the SGE chooses the value.

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

### Navigation

- index
- next |
- previous |
- Pygame SGE 0.7.0 documentation »
- Classes »