- UID
- 7
- 帖子
- 2888
- 精华
- 10
- 积分
- 2836
|
有兴趣的再来研究一下这个分形(谢宾斯基):
sierpinski {
; Written by Luke Plant
; Modified by Frederik Slijkerman
init:
complex z = pixel
loop:
IF (imag(z)>0.5)
z = 2*real(z) + flip(2*imag(z)-1)
ELSEIF (real(z)>0.5)
z = 2*real(z)-1 + flip(2*imag(z))
ELSE
z = 2*real(z) + flip(2*imag(z))
ENDIF
bailout:
|z| < @bailout
default:
title = "Sierpinksi Triangle"
center = (0.4, 0.4)
magn = 1.1538
maxiter = 149
param bailout
caption = "Bailout value"
default = 127
min = 1
endparam
} |
|