Advertisement
Guest User

Untitled

a guest
Sep 4th, 2018
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.08 KB | None | 0 0
  1. #@gui Neon : fx_neon, fx_neon_preview(0)
  2. #@gui : sep = separator(), note = note("Gradient norm")
  3. #@gui : Smoothness = float(0,0,10)
  4. #@gui : Linearity = float(0.5,0,1.5)
  5. #@gui : Min threshold = float(40,0,100)
  6. #@gui : Max threshold = float(60,0,100)
  7. #@gui : Negative = bool(0)
  8. #@gui : Opacity = float(1,0,1)
  9. #@gui : sep = separator(), note = note("Glow")
  10. #@gui : Size = float(5,0,50)
  11. #@gui : Intensity = float(1,0,3)
  12. #@gui : Darken = float(0,0,1)
  13. #@gui : Saturation = float(1.5,0,4)
  14. fx_neon :
  15. +fx_gradient_norm ${1-5}
  16. blend multiply,$6
  17. +b $7,1 *. {$8*sqrt($7)} -. {$9*($8*sqrt($7)*128)-1}
  18. rgb2hsv. s. c
  19. *.. {$10^2}
  20. a[-3--1] c hsv2rgb.
  21. blend add
  22.  
  23. fx_neon_preview :
  24. fx_neon $*
  25.  
  26. #@gui Noise [additive] : fx_noise, fx_noise_preview(0)
  27. #@gui : Amplitude = float(10,0,200)
  28. #@gui : Noise type = choice("Gaussian","Uniform","Salt and pepper","Poisson","Rice")
  29. #@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]")
  30. #@gui : Value action = choice(1,"None","Cut","Normalize")
  31. #@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)
  32. #@gui : sep = separator(), note = note("<small>Author: <i><a href="http://ow.ly/wpsV30fzhdI">David Tschumperl&#233;</a></i>. Latest update: <i>2010/29/12</i>.</small>")
  33. fx_noise :
  34. ac "_fx_noise $1,$2",$3,$4
  35. _fx_noise :
  36. repeat $! l[$>] split_opacity l[0] noise $1,$2 endl a c endl done
  37. fx_noise_preview :
  38. gui_split_preview "fx_noise $*",${-3--1}
  39.  
  40. #@gui Dreamy Abstraction : fx_dreamy_abstraction, fx_dreamy_abstraction_preview()
  41. #@gui : sep = separator(), note = note("Segmentation")
  42. #@gui : Edge threshold = float(2,0,30)
  43. #@gui : Smoothness = float(1,0,10)
  44. #@gui : Blend mode = choice(1,"add","alpha","and","average","blue","burn","darken",
  45. #@gui : "difference","divide","dodge","exclusion","freeze",
  46. #@gui : "grainextract","grainmerge","green","hardlight","hardmix",
  47. #@gui : "hue","interpolation","lighten","lightness","linearburn",
  48. #@gui : "linearlight","luminance","multiply","negation","or",
  49. #@gui : "overlay","pinlight","red","reflect","saturation","screen",
  50. #@gui : "shapeaverage","softburn","softdodge","softlight","stamp",
  51. #@gui : "subtract","value","vividlight","xor")
  52. #@gui : Opacity = float(0.5,0,1)
  53. #@gui : sep = separator(), note = note("Noise")
  54. #@gui : Noise amplitude = float(10,0,100)
  55. #@gui : Noise type = choice("Gaussian","Uniform","Salt and pepper","Poisson","Rice","Spread")
  56. #@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]")
  57. #@gui : Blend mode = choice(7,"add","alpha","and","average","blue","burn","darken",
  58. #@gui : "difference","divide","dodge","exclusion","freeze",
  59. #@gui : "grainextract","grainmerge","green","hardlight","hardmix",
  60. #@gui : "hue","interpolation","lighten","lightness","linearburn",
  61. #@gui : "linearlight","luminance","multiply","negation","or",
  62. #@gui : "overlay","pinlight","red","reflect","saturation","screen",
  63. #@gui : "shapeaverage","softburn","softdodge","softlight","stamp",
  64. #@gui : "subtract","value","vividlight","xor")
  65. #@gui : Opacity = float(1,0,1)
  66. #@gui : sep = separator(), note = note("Blur &#38; Constrained Sharpen")
  67. #@gui : Blur strength = float(3,0,20)
  68. #@gui : Sharpen radius factor = float(1,0,5)
  69. #@gui : Amount factor = float(1,0,5)
  70. #@gui : Threshold = float(1,0,5)
  71. #@gui : Constraint radius factor = float(1,0,5)
  72. #@gui : Overshoot factor = float(1,0,20)
  73. #@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]")
  74. #@gui : Value action = choice(1,"None","Cut","Normalize")
  75. #@gui : Antialias = float(25,0,100)
  76. #@gui : sep = separator(), note = note("Glow")
  77. #@gui : Size = float(5,0,50)
  78. #@gui : Intensity = float(1,0,3)
  79. #@gui : Darken = float(0,0,1)
  80. #@gui : Saturation = float(1.5,0,4)
  81. #@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)
  82. fx_dreamy_abstraction :
  83. -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"
  84. MergingOption1=$3
  85. Opacity1=$4
  86. MergingOption2=$8
  87. Opacity2=$9
  88. if {$4>=0}
  89. +fx_segment_watershed $1,$2,1,1 blend ${_mode{$MergingOption1+1}},$Opacity1
  90. fi
  91. if {$5>=0}
  92. +fc 0,0,0 -to_rgb
  93. if {$6==5}
  94. ac. "spread {([$5,$5]/100)*max(w,h)}",$7,1
  95. else
  96. ac. "_fx_noise {255*$5/100},$6",$7,1
  97. fi
  98. blend ${_mode{$MergingOption2+1}},$Opacity2
  99. if {$10>=0}
  100. _fx_gaussian_blur $10,0,0,1
  101. fi
  102. fi
  103. radius={$10*$11*2}
  104. amount={$10*$12*2}
  105. cradius={$10*$14*2}
  106. overshoot={$10*$15/10}
  107. iain_constrained_sharpen $radius,$amount,$13,$cradius,$overshoot,$16,$17
  108. if {$18>=0}
  109. fx_smooth_antialias {$18+(5*$10)},0,{($18+(5*$10))/20}
  110. fi
  111. fx_dreamy_abstraction_preview:
  112. fx_dreamy_abstraction $*
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement