#@gmic



#@gimp _<b>Testing</b>
#@gimp <i>123</i>
#------------------


#################################################
##                                             ##
##       gimp_Polygonize_Colored_Pencils       ##
##                                             ##
#################################################




#### assemblage de filtres samj 20131204
#@gimp Polygonize Colored Pencils : gimp_Polygonize_Colored_Pencils, gimp_Polygonize_Colored_Pencils_preview(0)
#@gimp : sep = separator(), note = note("<small>Polygonize parameters</small>")
#@gimp : Amplitude = int(300,0,2000)
#@gimp : Smoothness = float(10,0,100)
#@gimp : Minimal area = float(10,0,100)
#@gimp : X-resolution = float(10,1,256)
#@gimp : Y-resolution = float(10,1,256)
#@gimp : sep = separator(), note = note("<small>Colored Pencils parameters</small>")
#@gimp : Size = float(1.3,0,5)
#@gimp : Amplitude = float(50,0,200)
#@gimp : Quantize colors = int (20,2,255)
#@gimp : Color smoothness = float(2,0,30)
#@gimp : Mixer mode = choice(2,"Color Doping","Darken","Hard Light","Grain Merge","Lightness","Multiply","Soft Light","Value")
#@gimp : Color intensity =float (1,0,1)
#@gimp : sep = separator(), note = note("<small>Local Normalization</small>")
#@gimp : Normalization = choice(0,"No","ALL","Luminance")
#@gimp : sep = separator(), Preview type = choice("Full","Forward horizontal","Forward vertical","Backward horizontal","Backward vertical")
#@gimp : sep = separator(), note = note("<small>Filters by David Tschumperl&#233; - PhotoComiX  Latest update : <i>2013/12/04</i>.</small>")


gimp_Polygonize_Colored_Pencils :

-repeat @# -l[$>]
-polygonize[-1] $1,$2,$3,$4,$5
-gimp_cpencil[-1] $6,$7,$8,$9,$10,$11
-if {$12==1}
	-gimp_normalize_local[-1] 2,6,5,20,1,0
-elif {$12==2}
	-gimp_normalize_local[-1] 2,6,5,20,1,3
-endif
-endl -done
  
gimp_Polygonize_Colored_Pencils_preview :
	-gimp_split_preview "-gimp_Polygonize_Colored_Pencils $*",$-1

	


#################################################
##                                             ##
##     FIN gimp_Polygonize_Colored_Pencils     ##
##                                             ##
#################################################


