#@gmic

#-------------------
# Released filters
#-------------------


#-------------------
# Testing filters
#-------------------

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

#********** Chalk it up **********
##                                       forum   :     http://www.flickr.com/groups/gmic/discuss/72157631155481890/
##                                                     http://www.gimpchat.com/viewtopic.php?f=9&t=4982
##                                       Version 1.00  19 aot 2012 Merci  David pour la transposition au format G'MIC pour Gimp et l'aide :o)
##                                       Version 1.1   20 aot 2012 modification pour calques avec canal alpha par ajout de -remove_opacity
##                                                                  ajout du traitement par canaux pour gimp_morpho & gimp_spread
#@gimp Chalk it up : samj_chalkitup, samj_chalkitup_preview
#@gimp : sep = separator(), note = note("<small>Painting parameters</small>")
#@gimp : Abstraction = int(5,0,10)
#@gimp : Details scale = float(2.5,0,10)
#@gimp : Color = float(1.5,0,5)
#@gimp : Smoothness = float(50,0,200)
#@gimp : Sharpen shades = bool(1)
#@gimp : sep = separator(), note = note("<small>Morpho parameters</small>")
#@gimp : Action = int(5,0,32)
#@gimp : Size = int(5,0,32)
#@gimp : Invert colors = bool(0)
#@gimp : Shape = int(0,0,1)
#@gimp : Channel(s) = choice("All","RGBA","RGB","Luminance","Blue/red chrominances","Blue chrominance","Red chrominance","Lightness","ab-components","a-component","b-component","Hue","Saturation","Value","Key","Alpha","ch-components","c-component","h-component","Red","Green","Blue","Alpha")
#@gimp : sep = separator(), note = note("<small>Spread parameters</small>")
#@gimp : X-variations = float(0.8,-5,5)
#@gimp : Y-variations = float(1.9,-5,5)
#@gimp : Channel(s) = choice("All","RGBA","RGB","Luminance","Blue/red chrominances","Blue chrominance","Red chrominance","Lightness","ab-components","a-component","b-component","Hue","Saturation","Value","Key","Alpha","ch-components","c-component","h-component","Red","Green","Blue","Alpha")
#@gimp : sep = separator(), Preview type = choice("Full","Forward horizontal","Forward vertical","Backward horizontal","Backward vertical")
#@gimp : sep = separator(), note = note("<small>Author : <i>Samj</i>.      Latest update : <i>2012/08/19</i>.</small>")

samj_chalkitup :

####### Dclaration des variables

#gimp_painting
Abstraction=$1
Details_scale=$2
Color=$3
Smoothness=$4
Sharpen_shades=$5

#gimp_morpho
Action=$6
Size=$7
Invert_colors=$8
Shape=$9
Channel_morpho=$10

#gimp_spread
X_variations=$11
Y_variations=$12
Channel_spread=$13

####### Ligne de commandes

  -repeat @# -l[$>]
    -remove_opacity -gimp_painting $Abstraction,$Details_scale,$Color,$Smoothness,$Sharpen_shades -gimp_morpho $Action,$Size,$Invert_colors,$Shape,0,$Channel_morpho= -gimp_spread $X_variations,$Y_variations,$Channel_spread
  -endl -done

samj_chalkitup_preview :
  -gimp_split_preview "-samj_chalkitup ${1--2}",$-1


#@gimp _