gfx:clear-canvas

(gfx:clear-canvas time canvas [colour])


Description:

Clears the entire canvas (totally transparent) or to a colour if provided.


Arguments:

         canvas -- the canvas to clear

         colour -- optional colour to clear with (where colour is an (r g b a) list)

           time -- time in samples


Returns: boolean


Examples:

(gfx:clear-canvas (now) *canvas*)

(gfx:clear-canvas (now) *canvas* '(0 0.24 0.5 1.0))



Back to index