filter()

Image / Pixels

Description

Applies a filter to the display. Available filters: GRAY, INVERT, THRESHOLD.

Syntax

void filter(int mode) void filter(int mode, float param)

Parameters

NameTypeDescription
modeintGRAY, INVERT, THRESHOLD, BLUR_FILTER, POSTERIZE
paramfloatparameter for some filters (optional)

Returns

void

Related

Under the Hood

Implementation in Processing.h / Processing.cpp:

Loading...