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

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

老師我的??伾呛谏?/h1>
var?aneObj?=?function()
{
	this.x?=?[];
	this.len?=?[];
}
aneObj.prototype.num?=50;
aneObj.prototype.init?=?function()
{
	for?(var?i?=?0;?i?<?this.num;?i++)?{
		this.x[i]?=?i?*?16?+?Math.random()?*?20;//[0,1)?
????????this.len[i]?=?200?+?Math.random()?*?50;
	}
}	
aneObj.prototype.draw?=?function()
{???
????ctx2.save();?
????ctx2.globalAlbha?=?0.6;
	for?(var?i?=?0;?i?<?this.num;?i++)?{
		//beginPath,moveTo,linTo,stroke,starokeStyle,linewidth,lineCap,globalAlbha
		ctx2.beginPath();
		ctx2.moveTo(this.x[i],canHeight);
		ctx2.lineTo(this.x[i],canHeight?-?this.len[i]);
		ctx2.lineWidth?=?20;
		ctx2.lineCap?=?"round";
		ctx2.starokeStyle?=?"#3b154e";
		ctx2.stroke();
	}
	ctx2.restore();
}

http://img1.sycdn.imooc.com//561f6e6500017ab208130629.jpg

正在回答

2 回答

? ? ctx2.strokeStyle = "#3b154e"; 你寫的strokeStyle?多了一個(gè)a

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

透明效果的 17行的ctx2.globalAlbha?=?0.6; ?應(yīng)該為globalAlpha ?

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

舉報(bào)

0/150
提交
取消
HTML5小游戲---愛心魚(上)
  • 參與學(xué)習(xí)       92344    人
  • 解答問題       576    個(gè)

學(xué)做HTML5游戲,輕輕松松帶你上手,適合剛?cè)胧钟螒蜷_發(fā)的同學(xué)

進(jìn)入課程

老師我的??伾呛谏?/h1> 我要回答 關(guān)注問題

微信客服

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

幫助反饋 APP下載

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

公眾號

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