Advertisement
Guest User

Untitled

a guest
Jul 15th, 2015
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #@gimp Graduated color accent : gimp_gca, gimp_gca_preview
  2. #@gimp : Reference color = color(255,255,255)
  3. #@gimp : Amplitude = float(1,0,5)
  4. #@gimp : Max value = choice("From input","From reference color","Maximum allowed")
  5. #@gimp : Channel = choice(0,"Saturation","Lightness")
  6. #@gimp : sep = separator(), Preview type = choice("Full","Forward horizontal","Forward vertical","Backward horizontal","Backward vertical","Duplicate horizontal","Duplicate vertical")
  7. #@gimp : sep = separator(), note = note("<small>Author: <i>David Tschumperl&#233;</i>.      Latest update: <i>07/15/2015</i>.</small>")
  8. gimp_gca :
  9.   channel={1+$6}
  10.   -repeat $! -l[$>] -to_color -split_opacity -l[0]
  11.     --fc $1,$2,$3
  12.     --[1] [0] -norm[1] -/[1] {1e-6+iM} -*[1] -1 -+[1] 1 -pow[1] $4
  13.     -rgb2hsl[0] -s[0] c
  14.     -if {$5==0} -*[$channel,-1]
  15.     -elif {$5==1} ($1^$2^$3) -rgb2hsl[-1] -*[$channel] {i[$channel]} -rm[-2,-1]
  16.     -else -rv[$channel,-1] -rm[-1]
  17.     -endif
  18.     -a c -hsl2rgb
  19.   -endl -a c -endl -done
  20.  
  21. gimp_gca_preview :
  22.   -gimp_split_preview "-gimp_gca $*",$-1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement