#@gmic




#@gimp _<b>Testing</b>
#@gimp <i>Jamac4k</i>













#################################################
##                                             ##
##                Texture 001                  ##
##                                             ##
#################################################



#@gimp Texture 001  : samj_gimp_texture_zero_zero_un, samj_gimp_texture_zero_zero_un_preview(0)
#@gimp : note = note("<small>Gimp Chat Forum</small>")
#@gimp : note = link("http://gimpchat.com/viewtopic.php?f=4&t=9175","http://gimpchat.com/viewtopic.php?f=4&t=9175")
#@gimp : sep = separator()
#@gimp : Smoothness Gradient RGB = float(0,0.5,2)
#@gimp : Max threshold Gradient RGB = float(20,10,50)
#@gimp : sep = separator()
#@gimp : Amplitude Noise = float(80.0,40,200)
#@gimp : sep = separator()
#@gimp : Colors = float(0,-20,20)
#@gimp : Automatic color balance = bool(0)
#@gimp : sep = separator()
#@gimp : sep = separator(), Preview type = choice("Full","Forward horizontal","Forward vertical","Backward horizontal","Backward vertical")
#@gimp : sep = separator(), note = note("<small>samj - Latest update : <i>2013/12/04</i>.</small>")


samj_gimp_texture_zero_zero_un :

-repeat @# -l[$>]

	Smoothness_Gradient_RGB=$1
	Max_threshold_Gradient_RGB=$2

	Amplitude_Noise=$3
	
	Colors=$4
	Automatic_color_balance=$5

	--gimp_do_nothing
	-gimp_gradient2rgb[-1] $Smoothness_Gradient_RGB,0,$Max_threshold_Gradient_RGB,0,0
	{w},{h},1,3
	-fill_color[-1] 255,255,255
	-to_rgb[-1]
	-gimp_noise[-1] $Amplitude_Noise,0,2,0
	-gimp_blend[-1,-2] 25,1,0
	-gimp_tk_colortemp[-1] $Colors,$Automatic_color_balance
	-gimp_local_orientation[-1] 0,0,100,0,7
	
	-gimp_normalize_local[-1] 0,6,5,20,1,2
	-gimp_blend[0,-1] 13,1,0

-endl -done
  
samj_gimp_texture_zero_zero_un_preview :
	-gimp_split_preview "-samj_gimp_texture_zero_zero_un $*",$-1


#################################################
##                                             ##
##              FIN Texture 001                ##
##                                             ##
#################################################




#################################################
##                                             ##
##       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     ##
##                                             ##
#################################################



