Grx.clear_context

@accepts(Grx.Color)
@returns(none)
def clear_context(bg):
    # Python wrapper for grx_clear_context()
  

Clears the current context using the specified background color.

Thanks to the special Grx.Color definition, you can do more than simple clear with this functions, by example with: |[<!-- language="C" --> grx_clear_context (grx_color_to_xor_mode (grx_color_get_white ())); ]| the context is negativized, do it again and the context is restored.

bg

the background color