Welcome Installation Getting Started User Interaction Build a Game #1 Build a Game #2 Build a Game #3 Colours Coordinates API Reference Globals Window Camera Mouse Key Rect Image Text Shape Line Screen Sound Base

Screen

The Screen class provides a surface for rendering things without displaying them. It is a subclass of Rect.

__init__(width = window.width, height = window.height)

Call the screen initialiser.

  • width: float

    The width of the surface

  • height: float

    The height of the surface

width: float

The width of the surface.

height: float

The height of the surface.

size: float, float

The size of the surface.

  • x: float

    The width of the surface

  • y: float

    The height of the surface

save(path: str) -> None

Save the surface to an image.

  • path: str

    The path to the new image

Line Sound