#@gimp <b>Testing</b>
#@gimp <i>AnMal</i>

#@gimp AnMal Pattern 1 : gimp_AnMal_pattern1, gimp_AnMal_pattern1(1)
#@gimp : note = note("<span foreground="blue"><u>Cartesian transform :</u></span>")
#@gimp : Enable = bool(1)
#@gimp : X-warping = text{"(w+h)/20 * cos(y*20/h)"}
#@gimp : Y-warping = text{"(w+h)/20 * sin(x*20/w)"}
#@gimp : Relative warping = bool(1)
#@gimp : Interpolation = choice(1,"Nearest neighbor","Linear")
#@gimp : Boundary = choice(1,"Black","Nearest","Repeat")
#@gimp : Sep = separator(), note = note{"<span foreground="blue"><u>First kaleidoscope :</u></span>"}
#@gimp : Enable = bool(1)
#@gimp : Iterations = int(12,1,32)
#@gimp : Angle = float(0,0,360)
#@gimp : Boundary = choice(1,"Transparent","Nearest","Repeat")
#@gimp : Symmetry sides = choice("Backward","Forward","Swap")
#@gimp : Sep = separator(), note = note{"<span foreground="blue"><u>First offset :</u></span>"}
#@gimp : Enable = bool(1)
#@gimp : X-offset (%) = float(50,0,100)
#@gimp : Y-offset (%) = float(50,0,100)
#@gimp : Sep = separator(), note = note{"<span foreground="blue"><u>Second kaleidoscope :</u></span>"}
#@gimp : Enable = bool(1)
#@gimp : Iterations = int(12,1,32)
#@gimp : Angle = float(0,0,360)
#@gimp : Boundary = choice(0,"Transparent","Nearest","Repeat")
#@gimp : Symmetry sides = choice("Backward","Forward","Swap")
#@gimp : Sep = separator(), note = note{"<span foreground="blue"><u>Second offset :</u></span>"}
#@gimp : Enable = bool(1)
#@gimp : X-offset (%) = float(33.33,0,100)
#@gimp : Y-offset (%) = float(66.67,0,100)
#@gimp : Sep = separator(), note = note("<small>Authors : <i>AnMal, Jon Tait</i>.   Latest update : <i>2015/07/26</i>.</small>")
#@gimp : Note = link("Description and support","http://gimpchat.com/viewtopic.php?f=23&t=12849")

gimp_AnMal_pattern1 :
 -to_rgba[-1] 
 -if {$1} -gimp_custom_deformation[-1] "$2","$3",$4,$5,$6 -endif
 -if {$7} -gimp_symmetrizoscope[-1] $8,$9,$10,$11 -endif
 -if {$12} -shift[-1] $13%,$14%,0,0,2 -endif
 -if {$15} --gimp_symmetrizoscope[-1] $16,$17,$18,$19 -compose_rgba[-1,-2] -endif
 -if {$20} -shift[-1] $21%,$22%,0,0,2 -endif


