您好,登錄后才能下訂單哦!
<!--
如果您想在線看看效果:.NET/test/2.htm">http://m9m.nease.net/test/2.htm
-->
CoordOrig="-500,-500" coordsize="1000,1000"> function line(x, y, x1, y1, n) (x1 - n) + "," + y1 + "" style="position:relative;top:-80;left:-50;z -index:9999;" strokeweight="1pt"> Math.round(Math.random() * 255) + "," + Math.round(Math.random() * 255 ) +") var i, j, a; function polygonc(x0, y0, r, n, af) if(n < 3)return; function block(x, y, a, n, theta) a = length /4;
{
document.write("
// StrokeColor=Rgb("" + Math.round(Math.random() * 255 ) + "," +
}
var length = 1000; // 方塊邊長(zhǎng)
var n = 60, theta = 3; // 每個(gè)方塊里畫子方塊的個(gè)數(shù),偏移角度值
var x = 300, y = 300; // 原始坐標(biāo)位置
var py = 800; // x 偏移值
{
var x, y, xs, ys, i, dtheta, theta;
dtheta = 6.28318 / n;
theta = af * 0.0174533;
xs = x0 + r * Math.cos(theta);
ys = y0 + r * Math.sin(theta);
var xo = xs, yo = ys;
for ( i = 1; i < n; i++)
{
theta += dtheta;
x = x0 + r * Math.cos(theta);
y = y0 + r * Math.sin(theta);
line(xs, ys, x, y, py);
xs = x;
ys = y;
}
line(xs, ys, xo, yo, py);
}
{
var x0, y0, i, r, t, f, af = 45;
t = Math.abs(theta * 0.0174533);
f = 1 / (Math.cos(t) + Math.sin(t));
r = a / 1.414;
x0 = x + 0.5 * a;
y0 = y + 0.5 * a;
for (i = 1; i <= n; i++)
{
polygonc(x0, y0, r, 4, af);
r = r * f;
af -= theta;
}
}
for (i = 1; i <= 4; i++)
{
for (j = 1; j <= 4; j++)
{
block(x, y, a, n, theta);
theta = 0 - theta;
x += a;
}
x = 300;
y -= a;
theta = 0 - theta
}
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。