clear
syntax
clear()
description
Removes from the screen any element that was previously added during the trial.
example
newText("helloworld", "Hello world!")
.print()
,
newImage("smiley", "ya.png")
.print()
,
newButton("erase", "Erase")
.print()
.wait()
,
clear()
,
newButton("void", "Enough with the emptiness")
.print()
.wait()
- Prints a line of
Text
, anImage
and aButton
with the text"erase"
to the screen. - Remove the three elements from the screen when the
"erase"
Button
is clicked. - Print a new
Button
that is waiting to be clicked to the screen.