默认合成在现有形状上绘制新形状
context.globalCompositeOperation = "source-over"
“source-over”合成 [默认] ,将所有新图纸放在任何现有图纸上。
context.globalCompositeOperation='source-over'; // the default
context.drawImage(background,0,0);
context.drawImage(parachuter,0,0);
context.globalCompositeOperation = "source-over"
“source-over”合成 [默认] ,将所有新图纸放在任何现有图纸上。
context.globalCompositeOperation='source-over'; // the default
context.drawImage(background,0,0);
context.drawImage(parachuter,0,0);