# ---------------------------------- v 2.2
#@gimp Mc_Pendraw : mc_pendraw, mc_pendraw_preview
#@gimp : Sep = separator()
#@gimp : Amplitude = float(8,0,30)
#@gimp : Blur = float(0.8,0.1,2)
#@gimp : Sharp = float(450,100,2000)
#@gimp : Color = int(21,4,256)
#@gimp : Dithering = float(0.5,0,1)
#@gimp : Value = float(1,0,1)
#@gimp : Mode 2 = bool(false)
#@gimp : Color equal. = bool(false)
#@gimp : Equal. limit = int(255,100,255)
#@gimp : Sep = separator()
#@gimp : Lowers contrast = float(0,0,1)
#@gimp : Sep = separator(), Preview type = choice("Full","Forward horizontal","Forward vertical","Backward horizontal","Backward vertical","Duplicate horizontal","Duplicate vertical")
mc_pendraw:
-repeat @# -l[$>]
-split_opacity
-l[0]
-to_rgb
# contrast mask
-if {$10>0}
[0]
-b[0] 1
-negative[0]
-luminance[0]
-rv[0,1]
-blend[0,1] overlay,$10
-endif
# pendraw
--gimp_gradient_norm[0] 0,1.5,0,50.38,1,0
[0]
-smooth $1,0.2,1,3,3
-b $2
-sharpen $3
[0]
-r[0] 20,20,1,3,2
-equalize[0] 256,0%,98%
-index[3] [0],1,1
-rm[0]
# --
-nm[0] linee
-nm[1] orig
-nm[2] pen
-if {$7==0}
-rv[pen,linee]
-blend[pen,linee] multiply,1
-elif {$7==1}
-rv[orig,linee]
-blend[orig,linee] multiply,1
-endif
-normalize[0] 5,250
-autoindex[0] $4,$5
-rv[0,1]
-blend[0,1] value,$6
-if {$8==1}
-equalize 21,30,$9
-endif
-endl -a c -endl -done
mc_pendraw_preview:
-gimp_split_preview "-mc_pendraw $*",$-1
# ----------------------------------------------------------------------
connected the value slider $6,
and -equalize[0] 256,0%,98% to fix possible problems with large white areas in the picture.