clear_context


Description:

public void clear_context (Color bg)

Clears the current context using the specified background color.

Thanks to the special Color definition, you can do more than simple clear with this functions, by example with:

grx_clear_context (grx_color_to_xor_mode (grx_color_get_white ()));
the context is negativized, do it again and the context is restored.

Parameters:

bg

the background color


Namespace: Grx
Package: grx-3.0