//-------------------------------------------------------------- void ofApp::draw(){ float xloc = ofxGaussian(); float sd = 60; float mean = ofGetWidth()/2; xloc = (xloc *sd) +mean; ofSetColor(0,10); ofCircle(xloc, ofGetHeight()/2, 8,8); }
//-------------------------------------------------------------- void testApp::draw() { float xloc = ofxGaussian(); float sd = 60; float mean = ofGetWidth()/2; xloc = (xloc * sd ) + mean; ofFill(); ofColor col = ofColor(0,0,0,10); ofSetColor(col); ofCircle(xloc, ofGetHeight()/2, 16); }
float Particle::getBreakPoint() { /* float breakMin=90; float breakMax=180; while (true) { float breakVar = ofRandom(breakMin,breakMax); if (breakVar > ofRandom(breakMin,breakMax) && breakVar < ofRandom(breakMin,breakMax)){ return breakVar; } }*/ float mean = 50; float gaussian = ofxGaussian(); float sd = 6; float breakVar = ((sd * gaussian) + mean); //breakVar *= breakVar*0.01; return breakVar; }
//-------------------------------------------------------------- void ofApp::update() { float num = ofxGaussian(); float sd = 120; float mean = ofGetWidth() / 2; x = (sd * num) + mean; }