luismiguelfeijoo / pacman-cnwdpt0622

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

w4d3 date
Canvas
29/06/2022

Canvas

map

Glossary

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.

References

About


Languages

Language:JavaScript 79.3%Language:HTML 14.4%Language:CSS 6.3%