第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

canvas繪制兩個(gè)位置、形狀完全相同的三角形進(jìn)行合成,當(dāng)globalCompositeOperation = ‘xor' 時(shí),為什么斜線還在?有辦法讓其也消失嗎?

var?gco=new?Array();gco.push("source-atop");gco.push("source-in");gco.push("source-over");gco.push("destination-atop");gco.push("destination-in");gco.push("destination-over");gco.push("lighter");gco.push("copy");gco.push("xor");for?(n=0;n<gco.length;n++){document.write("<div?id='p_"?+?n?+?"'?style='float:left;'>"?+?gco[n]?+?":<br>");var?c=document.createElement("canvas");c.width=120;c.height=100;document.getElementById("p_"?+?n).appendChild(c);var?ctx=c.getContext("2d");?ctx.beginPath();ctx.fillStyle="blue";ctx.moveTo(50,?50);ctx.lineTo(10,?50);ctx.lineTo(10,?10);ctx.fill();ctx.globalCompositeOperation=gco[n];ctx.beginPath();ctx.fillStyle="red";ctx.moveTo(50,?50);ctx.lineTo(10,?50);ctx.lineTo(10,?10);ctx.fill();document.writ

image.png

正在回答

1 回答

寫法很奇怪,代碼也不全,圖片也沒法看

0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消

canvas繪制兩個(gè)位置、形狀完全相同的三角形進(jìn)行合成,當(dāng)globalCompositeOperation = ‘xor' 時(shí),為什么斜線還在?有辦法讓其也消失嗎?

我要回答 關(guān)注問題
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)