Ask questions about canvas function! ! ! ! ! !

  node.js, question

As shown in the figure, the purple figure is canvas canvas and the pink figure is an area designated by me inside. Does Canvas have the function of drawing part of overflow:hidden outside the pink area? It’s called What?

You can erase the specified area by using the clearRect method.