w4d3 | date |
---|---|
Canvas |
29/06/2022 |
clearRect
: The clearRect() method clears the specified pixels within a given rectangle (context.clearRect(x,y,width,height)).
beginPath()
: begins a path, or resets the current path.
The closePath()
method creates a path from the current point back to the starting point.
The stroke()
method actually draws the path you have defined with all those moveTo() and lineTo() methods. The default color is black.
The fill()
method fills the current drawing (path). The default color is black.