預設合成在現有形狀上繪製新形狀
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);