Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #@gui Neon : fx_neon, fx_neon_preview(0)
- #@gui : sep = separator(), note = note("Gradient norm")
- #@gui : Smoothness = float(0,0,10)
- #@gui : Linearity = float(0.5,0,1.5)
- #@gui : Min threshold = float(40,0,100)
- #@gui : Max threshold = float(60,0,100)
- #@gui : Negative = bool(0)
- #@gui : Opacity = float(1,0,1)
- #@gui : sep = separator(), note = note("Glow")
- #@gui : Size = float(5,0,50)
- #@gui : Intensity = float(1,0,3)
- #@gui : Darken = float(0,0,1)
- #@gui : Saturation = float(1.5,0,4)
- fx_neon :
- +fx_gradient_norm ${1-5}
- blend multiply,$6
- +b $7,1 *. {$8*sqrt($7)} -. {$9*($8*sqrt($7)*128)-1}
- rgb2hsv. s. c
- *.. {$10^2}
- a[-3--1] c hsv2rgb.
- blend add
- fx_neon_preview :
- fx_neon $*
- #@gui Noise [additive] : fx_noise, fx_noise_preview(0)
- #@gui : Amplitude = float(10,0,200)
- #@gui : Noise type = choice("Gaussian","Uniform","Salt and pepper","Poisson","Rice")
- #@gui : sep = separator(), Channel(s) = choice("All","RGBA [all]","RGB [all]","RGB [red]","RGB [green]","RGB [blue]","RGBA [alpha]","Linear RGB [all]","Linear RGB [red]","Linear RGB [green]","Linear RGB [blue]","YCbCr [luminance]","YCbCr [blue-red chrominances]","YCbCr [blue chrominance]","YCbCr [red chrominance]","YCbCr [green chrominance]","Lab [lightness]","Lab [ab-chrominances]","Lab [a-chrominance]","Lab [b-chrominance]","Lch [ch-chrominances]","Lch [c-chrominance]","Lch [h-chrominance]","HSV [hue]","HSV [saturation]","HSV [value]","HSI [intensity]","HSL [lightness]","CMYK [cyan]","CMYK [magenta]","CMYK [yellow]","CMYK [key]","YIQ [luma]","YIQ [chromas]")
- #@gui : Value action = choice(1,"None","Cut","Normalize")
- #@gui : sep = separator(), Preview type = choice("Full","Forward horizontal","Forward vertical","Backward horizontal","Backward vertical","Duplicate top","Duplicate left","Duplicate bottom","Duplicate right","Duplicate horizontal","Duplicate vertical","Checkered","Checkered inverse"), Preview split = point(50,50,0,0,200,200,200,0,10,0)
- #@gui : sep = separator(), note = note("<small>Author: <i><a href="http://ow.ly/wpsV30fzhdI">David Tschumperlé</a></i>. Latest update: <i>2010/29/12</i>.</small>")
- fx_noise :
- ac "_fx_noise $1,$2",$3,$4
- _fx_noise :
- repeat $! l[$>] split_opacity l[0] noise $1,$2 endl a c endl done
- fx_noise_preview :
- gui_split_preview "fx_noise $*",${-3--1}
- #@gui Dreamy Abstraction : fx_dreamy_abstraction, fx_dreamy_abstraction_preview()
- #@gui : sep = separator(), note = note("Segmentation")
- #@gui : Edge threshold = float(2,0,30)
- #@gui : Smoothness = float(1,0,10)
- #@gui : Blend mode = choice(1,"add","alpha","and","average","blue","burn","darken",
- #@gui : "difference","divide","dodge","exclusion","freeze",
- #@gui : "grainextract","grainmerge","green","hardlight","hardmix",
- #@gui : "hue","interpolation","lighten","lightness","linearburn",
- #@gui : "linearlight","luminance","multiply","negation","or",
- #@gui : "overlay","pinlight","red","reflect","saturation","screen",
- #@gui : "shapeaverage","softburn","softdodge","softlight","stamp",
- #@gui : "subtract","value","vividlight","xor")
- #@gui : Opacity = float(0.5,0,1)
- #@gui : sep = separator(), note = note("Noise")
- #@gui : Noise amplitude = float(10,0,100)
- #@gui : Noise type = choice("Gaussian","Uniform","Salt and pepper","Poisson","Rice","Spread")
- #@gui : Noise channel(s) = choice("All","RGBA [all]","RGB [all]","RGB [red]","RGB [green]","RGB [blue]","RGBA [alpha]","Linear RGB [all]","Linear RGB [red]","Linear RGB [green]","Linear RGB [blue]","YCbCr [luminance]","YCbCr [blue-red chrominances]","YCbCr [blue chrominance]","YCbCr [red chrominance]","YCbCr [green chrominance]","Lab [lightness]","Lab [ab-chrominances]","Lab [a-chrominance]","Lab [b-chrominance]","Lch [ch-chrominances]","Lch [c-chrominance]","Lch [h-chrominance]","HSV [hue]","HSV [saturation]","HSV [value]","HSI [intensity]","HSL [lightness]","CMYK [cyan]","CMYK [magenta]","CMYK [yellow]","CMYK [key]","YIQ [luma]","YIQ [chromas]")
- #@gui : Blend mode = choice(7,"add","alpha","and","average","blue","burn","darken",
- #@gui : "difference","divide","dodge","exclusion","freeze",
- #@gui : "grainextract","grainmerge","green","hardlight","hardmix",
- #@gui : "hue","interpolation","lighten","lightness","linearburn",
- #@gui : "linearlight","luminance","multiply","negation","or",
- #@gui : "overlay","pinlight","red","reflect","saturation","screen",
- #@gui : "shapeaverage","softburn","softdodge","softlight","stamp",
- #@gui : "subtract","value","vividlight","xor")
- #@gui : Opacity = float(1,0,1)
- #@gui : sep = separator(), note = note("Blur & Constrained Sharpen")
- #@gui : Blur strength = float(3,0,20)
- #@gui : Sharpen radius factor = float(1,0,5)
- #@gui : Amount factor = float(1,0,5)
- #@gui : Threshold = float(1,0,5)
- #@gui : Constraint radius factor = float(1,0,5)
- #@gui : Overshoot factor = float(1,0,20)
- #@gui : Sharpen channel(s) = choice(11,"All","RGBA [all]","RGB [all]","RGB [red]","RGB [green]","RGB [blue]","RGBA [alpha]","Linear RGB [all]","Linear RGB [red]","Linear RGB [green]","Linear RGB [blue]","YCbCr [luminance]","YCbCr [blue-red chrominances]","YCbCr [blue chrominance]","YCbCr [red chrominance]","YCbCr [green chrominance]","Lab [lightness]","Lab [ab-chrominances]","Lab [a-chrominance]","Lab [b-chrominance]","Lch [ch-chrominances]","Lch [c-chrominance]","Lch [h-chrominance]","HSV [hue]","HSV [saturation]","HSV [value]","HSI [intensity]","HSL [lightness]","CMYK [cyan]","CMYK [magenta]","CMYK [yellow]","CMYK [key]")
- #@gui : Value action = choice(1,"None","Cut","Normalize")
- #@gui : Antialias = float(25,0,100)
- #@gui : sep = separator(), note = note("Glow")
- #@gui : Size = float(5,0,50)
- #@gui : Intensity = float(1,0,3)
- #@gui : Darken = float(0,0,1)
- #@gui : Saturation = float(1.5,0,4)
- #@gui : sep = separator(), Preview type = choice("Full","Forward horizontal","Forward vertical","Backward horizontal","Backward vertical","Duplicate top","Duplicate left","Duplicate bottom","Duplicate right","Duplicate horizontal","Duplicate vertical","Checkered","Checkered inverse"), Preview split = point(50,50,0,0,200,200,200,0,10,0)
- fx_dreamy_abstraction :
- -m "MergeChoice : $""=_mode" -MergeChoice "add","alpha","and","average","blue","burn","darken","difference","divide","dodge","exclusion","freeze","grainextract","grainmerge","green","hardlight","hardmix","hue","interpolation","lighten","lightness","linearburn","linearlight","luminance","multiply","negation","or","overlay","pinlight","red","reflect","saturation","screen","shapeaverage","softburn","softdodge","softlight","stamp","subtract","value","vividlight","xor","edges","error"
- MergingOption1=$3
- Opacity1=$4
- MergingOption2=$8
- Opacity2=$9
- if {$4>=0}
- +fx_segment_watershed $1,$2,1,1 blend ${_mode{$MergingOption1+1}},$Opacity1
- fi
- if {$5>=0}
- +fc 0,0,0 -to_rgb
- if {$6==5}
- ac. "spread {([$5,$5]/100)*max(w,h)}",$7,1
- else
- ac. "_fx_noise {255*$5/100},$6",$7,1
- fi
- blend ${_mode{$MergingOption2+1}},$Opacity2
- if {$10>=0}
- _fx_gaussian_blur $10,0,0,1
- fi
- fi
- radius={$10*$11*2}
- amount={$10*$12*2}
- cradius={$10*$14*2}
- overshoot={$10*$15/10}
- iain_constrained_sharpen $radius,$amount,$13,$cradius,$overshoot,$16,$17
- if {$18>=0}
- fx_smooth_antialias {$18+(5*$10)},0,{($18+(5*$10))/20}
- fi
- fx_dreamy_abstraction_preview:
- fx_dreamy_abstraction $*
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement