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: floatThe width of the surface
height: floatThe 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: floatThe width of the surface
y: floatThe height of the surface
save(path: str) -> None
Save the surface to an image.
path: strThe path to the new image