diff options
Diffstat (limited to 'liveengine/src/testApp.cpp')
| -rwxr-xr-x | liveengine/src/testApp.cpp | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/liveengine/src/testApp.cpp b/liveengine/src/testApp.cpp index 5c337b0..62d18b2 100755 --- a/liveengine/src/testApp.cpp +++ b/liveengine/src/testApp.cpp @@ -67,7 +67,15 @@ void testApp::setup(){ grab.setUseTexture(true); showFPS=false;
- ofBackground(0,0,0);
+ ofBackground(0,0,0); + + //drawing.load("test.svg");
+ //drawing.fill("0xffffff"); + svg.load("Ag01036x.wmf.svg");
+ printf("loaded Ag01036x.wmf.svg: %i paths\n",svg.getNumPath());
+ for (int i=0;i<svg.getNumPath();i++) {
+ printf("path %i: fill %08x stroke %08x\n",i,svg.getPathAt(i).getFillColor().getHex(),svg.getPathAt(i).getStrokeColor().getHex());
+ }
} //-------------------------------------------------------------- @@ -82,7 +90,7 @@ void testApp::draw(){ grab.update();
grab.reloadTexture(); ofBackground(0,0,0); - grab.draw( 1,1); + //grab.draw( 1,1); float notewidth=ofGetWidth()/NUM_NOTES; float noteheight=ofGetHeight()/NUM_CONTROLLERS; @@ -91,6 +99,11 @@ void testApp::draw(){ ofSetColor(ofColor((controller_colours[i].r*controllers[i])>>7,(controller_colours[i].g*controllers[i])>>7,(controller_colours[i].b*controllers[i])>>7)); ofRect(note*notewidth,i*noteheight,notewidth,noteheight); }
+
+ ofPushMatrix();
+ ofScale(sin(ofGetElapsedTimef())+1.1,sin(ofGetElapsedTimef())+1.1);
+ svg.draw();
+ ofPopMatrix();
//for (int i=0;i<numLayers;i++) layers[i]->draw();
ofSetColor(255,255,255);
|
