blb.ufm中的分形
UF-Chico {
;
; Mutation of 'M-SetInNewton'.
; Fractint and UF versions by Bradley Beacham
; Original formula by Jon Horner [100112,1700]
; For 'M-SetInNewton', use defaults
;
; See blb.txt for comments.
; 18 April 2003
;
init:
if @ThisMode == "Mandelbrot"
z = (0,0)
c = @CFunc(#pixel)
else ;Julia
z = #pixel
c = @CFunc(@seed)
endif
complex c1 = c - 1
complex k = @ConInit
complex k1 = k - 1
complex LastZ = (0,0)
complex nm = (0,0)
complex dn = (0,0)
loop:
LastZ = z
nm = k*c - k1*z*c1
dn = k*(k*z*z + c1)
z = @LoopFunc(nm/dn) + k1*z/k + @ConLoop
bailout:
0.01 <= |(z-LastZ)|
default:
title = "UF-Chico"
param ThisMode ;Current Mode
default = 0
enum = "Mandelbrot" "Julia"
visible = False
endparam
param NextMode ;Mode to switch to
default = 1
enum = "Mandelbrot" "Julia"
visible = False
endparam
heading
caption = "M-Set Mode (F7 to Switch)"
visible = (@ThisMode == "Mandelbrot")
endheading
heading
caption = "J-Set Mode (F7 to Switch)"
visible = (@ThisMode == "Julia")
endheading
complex param seed
caption = "Julia seed"
default = (0,0)
visible = (@ThisMode == "Julia")
endparam
param ConInit
caption = "Init. Constant"
default = (3,0)
endparam
param ConLoop
caption = "Loop Constant"
default = (0,0)
endparam
func CFunc
caption = "C Function"
default = ident()
endfunc
func LoopFunc
caption = "Loop Function"
default = ident()
endfunc
switch:
type = "UF-Chico"
ThisMode = NextMode
NextMode = ThisMode
seed = #pixel
ConInit = ConInit
ConLoop = ConLoop
CFunc = CFunc
LoopFunc = LoopFunc
}
除非非注解才懂,不再注解,视频中已看出解读程序。 |