rocinantealpha

reference / pictures

filter

A new picture with a filter applied: gray, invert, threshold, posterize, blur, edges or pixelate: filter photo as blur by 4. by is a brightness for threshold (0 to 255, the start 128), a number of steps for posterize (4), a radius in pixels for blur (2) and a block size in pixels for pixelate (8).

photo = load "landscape.png"background 245image photo at 10 10 width 120image (filter photo as gray) at 140 10 width 120image (filter photo as invert) at 270 10 width 120image (filter photo as blur by 5) at 10 100 width 120image (filter photo as threshold by 110) at 140 100 width 120image (filter photo as edges) at 270 100 width 120image (filter photo as posterize by 3) at 10 190 width 120image (filter photo as pixelate by 6) at 140 190 width 120
what it draws: the whole window, 400 by 300
What the example of filter draws

How to write it

filter picture as word [by number]

Gives a picture.

Words it takes

after as
gray, invert, threshold, posterize, blur, edges, pixelate

Related