FilterPImage

Extension of Processing's PImage that adds filters and image settings like contrast, saturation etc.


Project maintained by fdansv Hosted on GitHub Pages — Theme by mattgraham

More control over your PImages

FilterPImage directly extends Processing's PImage, adding a growing number of controls and filters to get great animations.

The following is a list of some of the examples. For some more comprehensive documentation, you can explore the javadoc.

Using the class is as simple as using the following constructor:

FilterPImage image = new FilterPImage(context, path);

Where context is the PApplet (usually ``this``), and path a String pointing at the file.

Current filters/adjustments available

contrast(double value)

Changes the image's contrast according to value

tint(int r, int g, int b)

Tints (kind of) the image with the specified colour

saturate(float factor)

Multiplies the saturation of the image by the factor.

makeItMoreYellow() 

Makes the image, indeed, more yellow.

smurfify()

Turns people into smurfs

sepia(int depth)

Applies a sepia filter to the image, with more or less depth

trainspotting()

Makes everything a bit more orange

ocean()

Makes everything a bit more dark blue