From 3b89e73c157f0eef8a3479b613491c8343f9c43b Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Tue, 18 Apr 2023 17:41:57 +0100 Subject: loads SVGs --- nextus/src/ofApp.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'nextus/src/ofApp.cpp') diff --git a/nextus/src/ofApp.cpp b/nextus/src/ofApp.cpp index 3ace079..088c394 100644 --- a/nextus/src/ofApp.cpp +++ b/nextus/src/ofApp.cpp @@ -63,6 +63,21 @@ void ofApp::draw(){ svginput.draw(); textinput.draw(); + //process the pipeline + vector output=svginput.getLines(); + + ofPushMatrix(); + ofTranslate(695,5); + ofSetColor(255); + ofNoFill(); + ofDrawRectangle(0,0,500,500); + ofTranslate(250,250); + ofScale(250.0f); + for (auto poly:output){ + poly.draw(); + } + ofPopMatrix(); + } -- cgit v1.2.3