globalCompositeOperation 77 浏览 1 文章

globalCompositeOperation 是 Canvas 的核心绘图属性,用于设定新绘制图形与画布已有像素的混合叠加规则,支持叠加、异或、覆盖等十余种模式,可快速实现遮罩、融合、反色等创意视觉效果。