Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #@gimp Vector painting : gimp_vector_painting, gimp_vector_painting_preview(1)
- #@gimp : Details = float(9,0,10)
- #@gimp : sep = separator(), Preview type = choice("Full","Forward horizontal","Forward vertical","Backward horizontal","Backward vertical","Duplicate horizontal","Duplicate vertical")
- #@gimp : sep = separator(), note = note("<small>Author: <i>David Tschumperlé</i>.\nLatest update: <i>08/25/2015</i>.</small>")
- gimp_vector_painting :
- -repeat $! -l[$>]
- --luminance -b. {10-$1}%,1,1
- -f. "dmax = -1; nmax = 0;
- for (n = 0, ++n<=8,
- p = arg(n,-1,0,1,-1,1,-1,0,1);
- q = arg(n,-1,-1,-1,0,0,1,1,1);
- d = (j(p,q,0,0,0,1) - i)^2;
- if (d>dmax,dmax = d; nmax = n,nmax)
- )"
- -blend shapeaverage
- -endl -done
- gimp_vector_painting_preview :
- -gimp_split_preview "-gimp_vector_painting $*",$-1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement