summaryrefslogtreecommitdiff
path: root/gui/src/ofApp.cpp
diff options
context:
space:
mode:
authorTim Redfern <tim@getdrop.com>2018-05-31 18:48:56 +0100
committerTim Redfern <tim@getdrop.com>2018-05-31 18:48:56 +0100
commitc28bf33277ef6a7d9ac901f76f6c0e5c4fcbc83d (patch)
tree682c107e6f819ca91ad0e7aed774e0cc0b774e35 /gui/src/ofApp.cpp
parent23879cc5bf88de215f10de14f1a3de9b6b2f586a (diff)
transform and rotate centred
Diffstat (limited to 'gui/src/ofApp.cpp')
-rw-r--r--gui/src/ofApp.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/gui/src/ofApp.cpp b/gui/src/ofApp.cpp
index e684254..0c5ed9c 100644
--- a/gui/src/ofApp.cpp
+++ b/gui/src/ofApp.cpp
@@ -99,6 +99,9 @@ void ofApp::setup(){
audiogui.add(plotter.width.set("point width", 2, 1, 256));
audiogui.add(plotter.num_points.set("num points", 50, 1, 512));
audiogui.add(plotter.history_size.set("num plots", 5, 1, 100));
+ audiogui.add(plotter.translate.set("translate",ofVec2f(0,0),ofVec2f(-50,-50),ofVec2f(50,50)));
+ audiogui.add(plotter.rotate.set("rotate",0.0f,-10.0f,10.0f));
+ audiogui.add(plotter.scale.set("scale",ofVec2f(1.0f,1.0f),ofVec2f(0.5f,0.5f),ofVec2f(2.0f,2.0f)));
audiogui.add(plotter.startColour.set("start",ofColor(255,255,255)));
audiogui.add(plotter.endColour.set("end",ofColor(0,0,0)));
@@ -754,7 +757,7 @@ void ofApp::drawOutput(ofEventArgs & args){
0.0f,1.0f,0.0f,0.0f,
0.0f,0.0f,1.0f,0.0f,
0.0f,0.0f,0.0f,1.0f);
- polyOutput=plotter.output(x,scalePlot,decayPlot);
+ polyOutput=plotter.output(scalePlot,decayPlot);
break;
}
default: {