phoenixcplx {
init:
complex z = pixel
complex y = 0
complex oldz = 0
loop:
oldz = z
if @degree >= 2
z = z^@degree + p1 * z^(@degree - 1) + p2 * y
elseif @degree <= -3
z = z^(-@degree) + p1 * z^(-@degree - 2) + p2 * y
else
z = z^2 + p1 + p2 * y
endif
y = oldz
bailout:
(@test == 0 && |z| <= @bailout) || \
(@test == 1 && sqr(real(z)) <= @bailout) || \
(@test == 2 && sqr(imag(z)) <= @bailout) || \
(@test == 3 && (sqr(real(z)) <= @bailout && sqr(imag(z)) < @bailout)) || \
(@test == 4 && (sqr(real(z)) <= @bailout || sqr(imag(z)) < @bailout)) || \
(@test == 5 && (sqr(abs(real(z)) + abs(imag(z))) <= @bailout)) || \
(@test == 6 && (sqr(real(z) + imag(z)) <= @bailout))
default:
title = "Phoenix (complex)"
maxiter = 149
param p1
caption = "Parameter 1"
default = (0.2, 0)
endparam
param p2
caption = "Parameter 2"
default = (0.3, 0)
endparam
param degree
caption = "Degree"
default = 0
endparam
param test
caption = "Bailout Test"
default = 0
enum = "mod" "real" "imag" "or" "and" "manh" "manr"
endparam
param bailout
caption = "Bailout value"
default = 4.0
min = 1.0
endparam
switch:
type = "mandphoenixclx"
degree = degree
test = test
bailout = bailout
}
GSP造好后,图片色彩实在太具诱惑力,让人难以抵挡,试扫几张。
|