已经准备好名为 canvasInput 和 canvasOutput 的 <canvas> 元素。点击 Try it 按钮查看结果。你可以选择另一张图片。你可以修改 <textarea> 中的代码以进行更深入的研究。