Name

filter()

Examples
img = loadImage("apples.jpg")
image(img, 0, 0)
filter(THRESHOLD)
img = loadImage("apples.jpg")
image(img, 0, 0)
filter(GRAY)
img = loadImage("apples.jpg")
image(img, 0, 0)
filter(INVERT)
img = loadImage("apples.jpg")
image(img, 0, 0)
filter(POSTERIZE, 4)
img = loadImage("apples.jpg")
image(img, 0, 0)
filter(BLUR, 6)
img = loadImage("apples.jpg")
image(img, 0, 0)
filter(ERODE)
img = loadImage("apples.jpg")
image(img, 0, 0)
filter(DILATE)
# Custom blur shader
size(100, 100, P2D)
blur = loadShader("blur.glsl")
img = loadImage("apples.jpg")
image(img, 0, 0)
filter(blur)
Description
Syntax
filter(shader)
filter(kind)
filter(kind, param)
Parameters
shader
kind
param
Updated on Wed Jan 18 17:32:21 2017.
Creative Commons License