Skip to content

yasuohasegawa/OFColorMatrix

Repository files navigation

OFColorMatrix

This code is a port of http://www.quasimondo.com/colormatrix/ColorMatrix.as.
This is only tested on windows 10.
In order to use this code, you need a fragment shader code where it'S located at "./bin/data/shader/" directory.

original image:
Screenshot

invert:
Screenshot

saturation:
Screenshot

contrast:
Screenshot

brightness:
Screenshot

grayscale:
Screenshot

hue:
Screenshot

Example Code

Here is a one of the example applying color matrix effect to an image.

void ofApp::setup(){
    :
    colorMat.adjustBrightness(100, 100, 100);
    :
}

void ofApp::draw(){
    :
    colorMat.apply(shader);
    :
}

About

ColorMatrix for openframeworks.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages