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, anImageand aButtonwith the text"erase"to the screen. - Remove the three elements from the screen when the
"erase"Buttonis clicked. - Print a new
Buttonthat is waiting to be clicked to the screen.