summaryrefslogtreecommitdiff
path: root/drawing/src/colourPolyline.cpp
diff options
context:
space:
mode:
authorTim Redfern <tim@getdrop.com>2018-01-28 22:20:49 +0000
committerTim Redfern <tim@getdrop.com>2018-01-28 22:20:49 +0000
commit64c89ab53447a004002ec0b0db94fd0a1e632cf6 (patch)
tree65ce3b4802bbb0656cc1a8c843c81d7a3fcda8c9 /drawing/src/colourPolyline.cpp
parent404746784ce6ef2b87c396a12451947fee28b244 (diff)
POC driver
Diffstat (limited to 'drawing/src/colourPolyline.cpp')
-rw-r--r--drawing/src/colourPolyline.cpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/drawing/src/colourPolyline.cpp b/drawing/src/colourPolyline.cpp
deleted file mode 100644
index 810488d..0000000
--- a/drawing/src/colourPolyline.cpp
+++ /dev/null
@@ -1,21 +0,0 @@
-#include "colourPolyline.h"
-
-void colourPolyline::addVertex( const ofPoint& p , const ofColor& c){
- ofPolyline::addVertex( p );
- pointColours.push_back( c );
-}
-
-void colourPolyline::addVertex( const ofPoint& p ){
- addVertex( p , ofColor(255,255,255));
-}
-
-void colourPolyline::draw(){
- for (int i=0;i<ofPolyline::size()-1;i++){
- ofSetColor(pointColours[i]);
- ofPolyline l;
- l.addVertex(ofPolyline::operator[](i));
- l.addVertex(ofPolyline::operator[](i+1));
- l.draw();
- //todo - cache
- }
-}