HTML and CSS Reference
In-Depth Information
Simple Fill
We can easily fill the entire Canvas with a new background color, thus erasing the current
contents:
context
.
fillStyle
=
'000000'
;
context
.
fillRect
(
0
,
0
,
theCanvas
.
width
,
theCanvas
.
height
)