A flexible control panel based gui addon for openFrameworks
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
example ofparam example for ofxControlPanel Dec 16, 2014
src 0.9 fixes Sep 14, 2015
.gitignore two examples now! Mar 31, 2010
README.md Create README.md Dec 16, 2014



Added an example which you should be able to run from the addons/ofxControlPanel/example folder showing how the parameter stuff works.

The easiest usage is to create ofParameterGroups for a set of ofParameters and then add the group to the control panel. You can also add individual parameters though instead.

Quick example:

    ofParameterGroup cvControls; //this will be in your header file 
    ofParameter <bool> bInvert; 
    ofParemeter <float> threshold; 
    //then in setup 
    cvControls.setName("cv controls");
    cvControls.add(bInvert.set("invert", false));
    cvControls.add(threshold.set("threshold", 29.0, 1.0, 255.0));
    //now add the param group to the gui 
    gui.addGroup( cvControls );