diff options
| author | Tim Redfern <tim@eclectronics.org> | 2012-08-27 16:13:41 +0100 |
|---|---|---|
| committer | Tim Redfern <tim@eclectronics.org> | 2012-08-27 16:13:41 +0100 |
| commit | d4398c0f9f417ef527d05e3e394d9f5e329b537e (patch) | |
| tree | 50e586aea11c011f1f6bdc4c85ce896b0e4e628f /liveengine/src/testApp.cpp | |
| parent | 36abd3f1907a4ec3472ae08b7a99c567a33b9c8f (diff) | |
loading svg
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);
|
