Advertisement
Guest User

Untitled

a guest
Jun 18th, 2013
426
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.75 KB | None | 0 0
  1. #@gimp Colorize comics : gimp_colorize_comics, gimp_colorize_comics_preview(1)
  2. #@gimp : Smoothness = float(0,0,5)
  3. #@gimp : Output layers = _choice{2,"Single (merged)","Colors + Drawing","Strokes + Colors + Drawing"}
  4. #@gimp : sep = separator(), note = note("<small>Author: <i>David Tschumperl&#233;</i>.      Latest update: <i>2013/06/18</i>.</small>")
  5. gimp_colorize_comics :
  6.   -if {@#<2} -return -endif
  7.   -k[0,-1]
  8.  
  9.   --to_rgba[0] -split_opacity[-1] -+[-2] 1 -neq[-1] 0 -*[-2,-1]  # Map of color labels to spread.
  10.   --b[1] $1% -watershed[-2] [-1] -rm[-1]                         # Priority map.
  11.   --[-1] 1
  12.  
  13.   -if {$2==0} -rm[0] -blend[0,1] multiply
  14.   -elif {$2==1} -rm[0] -rv[0,1]
  15.   -else -rv[1,2]
  16.   -endif
  17.  
  18. gimp_colorize_comics_preview :
  19.   -gimp_colorize_comics $1,0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement