Clears the specified 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_context_clear (ctx, grx_color_to_xor_mode (GRX_COLOR_WHITE));the context is negativized, do it again and the context is restored.
Also see clear_context for clearing the current context and clear_screen for clearing the screen.
this |
the context |
bg |
the background color |