From b13a6be243a9c6abb3e6aa906ff033f81a5f209f Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Thu, 29 Nov 2018 21:41:23 +0000 Subject: colourise svg shapes --- gui/src/ofApp.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gui/src') diff --git a/gui/src/ofApp.cpp b/gui/src/ofApp.cpp index 888b271..56d3792 100644 --- a/gui/src/ofApp.cpp +++ b/gui/src/ofApp.cpp @@ -784,6 +784,13 @@ void ofApp::drawOutput(ofEventArgs & args){ } } } + if (contour_useColour){ + vector newPolys; + for (auto p: polyOutput){ + newPolys.push_back(colourPolyline((ofPolyline)p,ofColor(laser_R,laser_G,laser_B))); + } + polyOutput=newPolys; + } break; } case Audio:{ -- cgit v1.2.3