#@gmic




#@gimp _<b>Testing</b>
#@gimp <i>001</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                ##
##                                             ##
#################################################



