- UID
- 7
- 帖子
- 2888
- 精华
- 10
- 积分
- 2836
|
试试能否得到UF的这种效果,那个线性关系到底用来干什么的:
general_jul-2lines {
;
; "2 general lines" coloring method for Julia sets
; c = Julia parameter, hardcoded
; real(p1) = x-line a
; imag(p1) = x-line b
; real(p2) = x-line c
; imag(p2) = y-line a
; real(p3) = y-line b
; imag(p3) = y-line c
; bailout hardcoded to 10^12
; use "decomp=256" coloring
;
; Original Fractint formula by Kerry Mitchell, 26 Aug 98
; Modified for UF by Ken Childress, 02 Nov 99
;
init:
zc = #pixel
c = @JuliaCoords
rmin = 1.0e12
ax = real(@lineA)
bx = real(@lineB)
cx = real(@lineC)
ay = imag(@lineA)
by = imag(@lineB)
cy = imag(@lineC)
loop:
zc = sqr(zc) + c
x = real(zc)
y = imag(zc)
tempx = ax * x + bx * y + cx
tempy = ay * x + by * y + cy
temp = tempx + flip(tempy)
r = |temp|
if (r < rmin)
rmin = r
z = temp
endif
bailout:
|zc| < @bailout
default:
title = "Julia - 2 General Lines"
periodicity = 0
maxiter = 1000
param JuliaCoords
caption = "Julia Seed"
default = (0.26, 0.0014)
hint = "Julia seed value."
endparam
param lineA
caption = "Line A"
default = (0.0, 0.0)
hint = "Real = Line A x-value, Imag = Line A y-value"
endparam
param lineB
caption = "Line B"
default = (1.0, 0.0)
hint = "Real = Line B x-value, Imag = Line B y-value"
endparam
param lineC
caption = "Line C"
default = (1.0, 1.0)
hint = "Real = Line C x-value, Imag = Line C y-value"
endparam
param bailout
caption = "Bailout Value"
default = 1.0e12
hint = "The bailout value."
endparam
} |
|