summaryrefslogtreecommitdiff
path: root/nextus/src/vectorPlugin.cpp
diff options
context:
space:
mode:
authorTim Redfern <tim@getdrop.com>2023-04-23 23:22:38 +0100
committerTim Redfern <tim@getdrop.com>2023-04-23 23:22:38 +0100
commit9e0236016f5d6afd3a73edad183dfb2b02387e98 (patch)
tree5589b5010a1de6eed1650493e812179b84e6e3c6 /nextus/src/vectorPlugin.cpp
parentcdb92d8c8532a287b752a92f1cf0cbf88d52c117 (diff)
many fixes for Nextus show at the complex April 22 2023
Diffstat (limited to 'nextus/src/vectorPlugin.cpp')
-rw-r--r--nextus/src/vectorPlugin.cpp19
1 files changed, 9 insertions, 10 deletions
diff --git a/nextus/src/vectorPlugin.cpp b/nextus/src/vectorPlugin.cpp
index c87de08..8a5a53d 100644
--- a/nextus/src/vectorPlugin.cpp
+++ b/nextus/src/vectorPlugin.cpp
@@ -44,13 +44,14 @@ void svgPanel::load(string filename){
ofColor c1=path.getStrokeColor();
ofColor colour=path.getFillColor();
if (colour.r==colour.g&&colour.g==colour.b){
+ //if there appears to be no fill colour resort to stroke
colour=c1;
- }
+ };
segmenters.push_back(
colourLineSegmenter(
xformed,
- path.getStrokeColor()
+ colour
)
);
shape_selection_durations.push_back(0.0f);
@@ -180,17 +181,15 @@ vector<colourPolyline> svgPanel::getLines(){
}
}
}
- /*
- this should happen at output stage?
- if (contour_useColour){
- vector<colourPolyline> newPolys;
- for (auto p: output){
- newPolys.push_back(colourPolyline((ofPolyline)p,ofColor(laser_R,laser_G,laser_B))) ;
+ //this should happen at output stage?
+
+ if (colourise){
+ for (auto p=output.begin();p!=output.end();p++){
+ p->setColour(ofColor(255,255,255));
}
- output=newPolys;
}
- */
+
//}
return output;
} \ No newline at end of file