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

Window

The window object manages the main JoBase window.


    
__init__(title = "JoBase", width = 640, height = 480, color = WHITE)

Call the window initialiser. Use this to reset the state of the window.

  • title: str

    The title of the window

  • width: float

    The width of the window

  • height: float

    The height of the window

  • color: float, float, float

    The background colour of the window

title: str

The title of the window.

width: float

The width of the window.

height: float

The height of the window.

size: float, float

The dimensions of the window.

  • x: float

    The width of the window

  • y: float

    The height of the window

red: float

The red background colour of the window.

green: float

The green background colour of the window.

blue: float

The blue background colour of the window.

color: float, float, float

The background colour of the window.

  • r: float

    The red background colour of the window

  • g: float

    The green background colour of the window

  • b: float

    The blue background colour of the window

top: float

The top position of the window.

left: float

The left position of the window.

bottom: float

The bottom position of the window.

The right position of the window.

resize: bool

Determine whether the window was resized.

time: float

The number of seconds since the program started.

Globals Camera