APIWindow and frameclear_background

clear_background

Fills the full canvas with a background color.

Signature

clear_background

Fills the full canvas with a background color.

Signature

clear_background(color: Color) -> None

Parameters

NameTypeDefaultDescription
colorColorNonecolor argument for this API call.

Returns

None

Example

from conjure import *

init_window(360, 640, "API")
while not window_should_close():
    begin_drawing()
    clear_background(WHITE)
    draw_text("Moosh", 120, 300, 28, BLACK)
    end_drawing()

See also

  • init_window
  • window_should_close
  • close_window

Return to the window and frame overview or continue with the quickstart.