composite_2layer {
fractal:
  title="composite_2layer" width=512 height=384 layers=2
  credits="MegaFractal Phase F smoke test"
layer:
  caption="Top" opacity=50 mergemode=screen transparent=yes
mapping:
  center=-0.5/0 magn=1
formula:
  maxiter=100 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=65535 index=200 color=0
opacity:
  smooth=no index=0 opacity=255
layer:
  caption="Background" opacity=100
mapping:
  center=0.5/0 magn=1
formula:
  maxiter=100 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=16711680 index=200 color=16776960
opacity:
  smooth=no index=0 opacity=255
}

Test2.ufm:simple_mb_example {
init:
  z = #pixel
loop:
  z = z * z + #pixel
bailout:
  (@test == 0 && |z| <= @bailout)
default:
  param test
    default = 0
    enum = "mod"
  endparam
  param bailout
    default = 4.0
  endparam
}
