不知名网站编程记录(二)
var a = 0;
var b = 0;
while(b<6)
{
c.fillStyle = "blue";
c.fillRect(12*a,12*a,240-24*a,240-24*a);
a += 1;
c.fillStyle = "orange";
c.fillRect(12*a,12*a,240-24*a,240-24*a);
a += 1;
b += 1;
}
var a = 0;
var b = 0;
while(b<6)
{
c.fillStyle = "red";
c.fillRect(12*a,0,11,240);
a += 1;
c.fillStyle = "blue";
c.fillRect(12*a,0,11,240);
a += 1;
b += 1;
}