- UID
- 30376
- 帖子
- 527
- 精华
- 1
- 积分
- 6520
- 来自
- 湖南湘潭
|
t = -1, dr = 1, n = 4, s = 1.25,
da = 2 * PI / n, z = 0;
while ( ++ t < et && Z.norm( z ) < em ) {
if( Z.norm( z ) > dr ) {
let a = Z.arg( z ) / ( PI + PI ),
b = da * round( n * a );
if( !b ) b = sign( a ) * da;
z = Z.sub( 1 + s, Z.mult( s, Z.rot( z, -b ) ) );
}
z = Z.add( Z.sqr( z ), c );
}
t = -1, dr = 1, n = 4, s = 1.25,
da = 2 * PI / n, z = 0;
while ( ++ t < et && Z.norm( z ) < em ) {
if( Z.norm( z ) > dr ) {
let a = Z.arg( z ) / ( PI + PI ),
b = da * round( n * a );
z = Z.sub( 1 + s, Z.mult( s, Z.rot( z, -b ) ) );
}
z = Z.add( Z.sqr( z ), c );
}
|
|