Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #@gimp Colorize comics : gimp_colorize_comics, gimp_colorize_comics_preview(1)
- #@gimp : Smoothness = float(0,0,5)
- #@gimp : Output layers = _choice{2,"Single (merged)","Colors + Drawing","Strokes + Colors + Drawing"}
- #@gimp : sep = separator(), note = note("<small>Author: <i>David Tschumperlé</i>. Latest update: <i>2013/06/18</i>.</small>")
- gimp_colorize_comics :
- -if {@#<2} -return -endif
- -k[0,-1]
- --to_rgba[0] -split_opacity[-1] -+[-2] 1 -neq[-1] 0 -*[-2,-1] # Map of color labels to spread.
- --b[1] $1% -watershed[-2] [-1] -rm[-1] # Priority map.
- --[-1] 1
- -if {$2==0} -rm[0] -blend[0,1] multiply
- -elif {$2==1} -rm[0] -rv[0,1]
- -else -rv[1,2]
- -endif
- gimp_colorize_comics_preview :
- -gimp_colorize_comics $1,0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement