From ee4db4b804443bcad410c30be88bcdce7abf6008 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Mon, 29 Jan 2018 00:50:32 +0000 Subject: multi shapes --- ofxHelios/example/src/ofApp.cpp | 46 +++++++++++++++++++++++++++-------------- 1 file changed, 31 insertions(+), 15 deletions(-) (limited to 'ofxHelios/example/src/ofApp.cpp') diff --git a/ofxHelios/example/src/ofApp.cpp b/ofxHelios/example/src/ofApp.cpp index e629ae0..671529b 100644 --- a/ofxHelios/example/src/ofApp.cpp +++ b/ofxHelios/example/src/ofApp.cpp @@ -1,8 +1,9 @@ #include "ofApp.h" -int MAX_POINTS=30000; -int NUM_POINTS=1024; +int MAX_POINTS=20000; +int NUM_POINTS=128; int LASER_INTENSITY=37; +int CIRCLE_RADIUS=256; //-------------------------------------------------------------- void testApp::setup(){ @@ -12,7 +13,7 @@ void testApp::setup(){ //-------------------------------------------------------------- void testApp::update(){ - ofSetWindowTitle(ofToString(ofGetFrameRate(), 2)); + } @@ -47,22 +48,37 @@ void testApp::draw(){ float pfactor=(PI*2)/NUM_POINTS; - colourPolyline line; + vector lines; + + for (int k=0;k<2;k++){ + for (int j=0;j<2;j++){ + + colourPolyline line; + + for (int i=0;i0){ + ofSetWindowTitle(ofToString(ofGetFrameRate(), 2)+" fps laser points: "+ofToString(num)); + } + else { + ofSetWindowTitle("laser error "); } - line.draw(); - - laser.draw(line); + } -- cgit v1.2.3