Add-on for openFrameworks - GPU based real-time ASCII Art filter.
C++
Latest commit d3b2786 Jul 25, 2012 @pnitsch pnitsch changed app dimensions
Permalink
Failed to load latest commit information.
copy_to_data/ofxAsciiArt pushing to github Jul 23, 2012
example/src changed app dimensions Jul 25, 2012
src pushing to github Jul 23, 2012
README.md updated readme Jul 25, 2012

README.md

ofxAsciiArt - Real-time ASCII Art filter for oF.

This add-on was inspired by Sol's work with TextFX, the major difference being ofxAsciiArt runs on the GPU. Font data and LUT creation were taken from TextFX.

Sample Usage

.h:

ofxAsciiArt asciiArt;

.cpp:

void testApp::setup(){
    ofDisableArbTex(); 

    vidGrabber.initGrabber(512, 512, true); 

    asciiArt.init(vidGrabber.getTextureReference(), ofGetWidth(), ofGetHeight());
}

void testApp::update(){
    ofBackground(0);    

    vidGrabber.grabFrame();

    asciiArt.setContrast(contrast_slider.getValue());
    asciiArt.setColorDepth(depth_slider.getValue());
    asciiArt.update();
}

void testApp::draw(){
    asciiArt.draw((ofGetWidth() - asciiArt.getWidth())/2, (ofGetHeight() - asciiArt.getHeight())/2);
}