diff options
| author | Tim Redfern <tim@getdrop.com> | 2018-09-10 23:53:26 +0100 |
|---|---|---|
| committer | Tim Redfern <tim@getdrop.com> | 2018-09-10 23:53:26 +0100 |
| commit | f1bf4431e11666ca0131af8f10a934993b768f44 (patch) | |
| tree | 4b1286360d896317ee9a04fbd813cb71ff1040b1 /gui/src/ofApp.cpp | |
| parent | a0b504d11542097843db77653d3e26516a892593 (diff) | |
backwards gamma
Diffstat (limited to 'gui/src/ofApp.cpp')
| -rw-r--r-- | gui/src/ofApp.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gui/src/ofApp.cpp b/gui/src/ofApp.cpp index 059b498..4dda518 100644 --- a/gui/src/ofApp.cpp +++ b/gui/src/ofApp.cpp @@ -354,6 +354,14 @@ void ofApp::keyPressed(ofKeyEventArgs &args){ outputFS=!outputFS; ofSetFullscreen(outputFS); } + if(args.key >='1' && args.key <= '9'){ + sets[0].decayFactor = 1.0f + ( + pow(4.0f,-((args.key-'1')+1.7f)) + * (sets[0].decayFactor<1.0f?-1:1) + ); + sets[1].decayFactor=sets[0].decayFactor; + printf("Keydiff: %f Decayfactor: %f \n",((args.key-'1')+1.0f),sets[0].decayFactor); + } } //-------------------------------------------------------------- |
