Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example
src
.gitattributes
.gitignore
readme.md

readme.md

ofxMask

an easy way to mask

how to use

ofxMask mask;

// creating masker texture
mask.beginMask();
// draw masker here in gray scale
ofSetColor(255);
ofRect(100, 200, 100, 50);
ofSetColor(128);    // more black, more transparent
ofEllipse(250, 100, 150, 150);
mask.endMask();

// creating maskee texture
mask.begin();
// draw maskee here
sometexture.draw();
mask.end();

// draw result
mask.draw();

use beginMask(false) and begin(false) not to clear textures.

You can’t perform that action at this time.