Advertisement
Guest User

G'MIC filter "Crease"

a guest
Feb 15th, 2018
1,515
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.57 KB | None | 0 0
  1. #@gui Crease : fx_crease,fx_crease(0)
  2. #@gui : Amplitude = float(30,0,300)
  3. #@gui : Frequency (%) = float(10,0,100)
  4. #@gui : Boundary = choice(3,"Transparent","Nearest","Periodic","Mirror")
  5. #@gui : sep = separator(), note = note("<small>Author: <i>David Tschumperl&#233;</i>.      Latest update: <i>2018/01/22</i>.</small>")
  6. fx_crease :
  7.   repeat $! l[$>]
  8.     if {!$3} to_a fi
  9.     2,2,1,2,{"const w1 = w#-1-1; const h1 = h#-1 - 1; [ 0,w1,0,w1,0,0,h1,h1 ];"}
  10.     r. {0,D=$2*[w,h]%;[max(D[0],1),max(D[1],1)]},1,2,3 noise. $1,1
  11.     r. ..,..,1,2,3 warp.. .,0,1,$3 rm.
  12.   endl done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement