2009年3月18日 星期三
003-flash homework 05
strX = 350;
strY = 250;
endX = 450;
endY = 350;
lineTotal = 400;
for (i=0; i< lineTotal; i++) {
a = random(2)*2-1;
this.lineStyle(0,0xBBF9FF,random(70));
ptX = random(700)*a+strX;
ptY = random(500)*a+strY;
this.moveTo(strX,strY);
this.curveTo(ptX,ptY,endX,endY);
}
for (i=0; i< lineTotal; i++) {
a = random(2)*2-1;
this.lineStyle(0,0x3CD9FF,random(20));
ptX = random(400)*a*i;
ptY = random(100)*a*i;
this.moveTo(strX,strY);
this.curveTo(ptX,ptY,endX,endY);
}
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言