Fractal2 {
fractal:
  title="simple_example_rotation" width=1024 height=640 layers=1
  credits="steamuser;4/7/2026"
layer:
  caption="Background" opacity=100
mapping:
  center=-0.15408733307/1.0350652345 magn=43.816042 angle=39.5304
formula:
  maxiter=250 filename="Test2.ufm" entry="simple_mb_example"
  p_test=mod p_bailout=4.0
inside:
  transfer=none
outside:
  transfer=linear
gradient:
  smooth=yes index=0 color=8716288 index=100 color=16121855 index=200
  color=46591 index=300 color=156
opacity:
  smooth=no index=0 opacity=255
}

Test2.ufm:simple_mb_example {
; #pixel is the complex pixel center
init:
  z = #pixel
loop:
  z = z * z + #pixel
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 = "Simple Mandelbrot"
  maxiter = 250
  center = (-0.5, 0)
  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 = 0
  endparam
}

