clear()
Purpose
Clear the screen
Description
Clear the framebuffer and after a call to update the screen. Optionally a colour can be specified to fill the screen with (default is black)
Syntax
clear( )
clear( colour )
Arguments
colour colour name or RGB values { red, green, blue, opacity } between 0 and 1
Example
showKeyboard()
clear( { 1, 1, 1, 1 } )
update()
sleep( 3 )
clear( red )
update()
sleep( 3 )
clear()
update()
sleep( 3 )
Associated Commands