W3School TIY
编辑您的代码:
不使用 clip():
Your browser does not support the HTML5 canvas tag.
使用 clip():
Your browser does not support the HTML5 canvas tag.
查看结果: