SHOW:
|
|
- or go back to the newest paste.
| 1 | - | #@gimp Graduated color accent : gimp_gca, gimp_gca_preview |
| 1 | + | #@gimp Graduated color accent : gimp_gca, gimp_gca_preview |
| 2 | - | #@gimp : Reference color = color(255,255,255) |
| 2 | + | #@gimp : Reference color = color(255,255,255) |
| 3 | - | #@gimp : Amplitude = float(1,0,5) |
| 3 | + | #@gimp : Amplitude = float(1,0,5) |
| 4 | - | #@gimp : Max value = choice("From input","From reference color","Maximum allowed") |
| 4 | + | #@gimp : Max value = choice("From input","From reference color","Maximum allowed")
|
| 5 | - | #@gimp : Channel = choice(0,"Saturation","Lightness") |
| 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") |
| 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é</i>. Latest update: <i>07/15/2015</i>.</small>") |
| 7 | + | #@gimp : sep = separator(), note = note("<small>Author: <i>David Tschumperlé</i>. Latest update: <i>07/15/2015</i>.</small>")
|
| 8 | - | gimp_gca : |
| 8 | + | gimp_gca : |
| 9 | - | channel={1+$6} |
| 9 | + | channel={1+$6}
|
| 10 | - | -repeat $! -l[$>] -to_color -split_opacity -l[0] |
| 10 | + | -repeat $! -l[$>] -to_color -split_opacity -l[0] |
| 11 | - | --fc $1,$2,$3 |
| 11 | + | --fc $1,$2,$3 |
| 12 | - | --[1] [0] -norm[1] -/[1] {1e-6+iM} -pow[-1] $4 -*[-1] -1 -+[-1] 1 |
| 12 | + | --[1] [0] -norm[1] -/[1] {1e-6+iM} -*[1] -1 -+[1] 1 -pow[1] $4
|
| 13 | - | -rgb2hsl[0] -s[0] c |
| 13 | + | -rgb2hsl[0] -s[0] c |
| 14 | - | -if {$5==0} -*[$channel,-1] |
| 14 | + | -if {$5==0} -*[$channel,-1]
|
| 15 | - | -elif {$5==1} ($1^$2^$3) -rgb2hsl[-1] -*[$channel] {i[$channel]} -rm[-2,-1] |
| 15 | + | -elif {$5==1} ($1^$2^$3) -rgb2hsl[-1] -*[$channel] {i[$channel]} -rm[-2,-1]
|
| 16 | - | -else -rv[$channel,-1] -rm[-1] |
| 16 | + | -else -rv[$channel,-1] -rm[-1] |
| 17 | - | -endif |
| 17 | + | -endif |
| 18 | - | -a c -hsl2rgb |
| 18 | + | -a c -hsl2rgb |
| 19 | - | -endl -a c -endl -done |
| 19 | + | -endl -a c -endl -done |
| 20 | - | |
| 20 | + | |
| 21 | - | gimp_gca_preview : |
| 21 | + | gimp_gca_preview : |
| 22 | -gimp_split_preview "-gimp_gca $*",$-1 |