#include "testApp.h"


//--------------------------------------------------------------
void testApp::setup(){
	ofEnableSmoothing();
	p = LissajousParticle();
}

//--------------------------------------------------------------
void testApp::update(){
	p.update();
}

//--------------------------------------------------------------
void testApp::draw(){
	ofBackground(0,0,0);
	p.draw();
}

//--------------------------------------------------------------
void testApp::keyPressed  (int key){
	
}

//--------------------------------------------------------------
void testApp::keyReleased  (int key){ 
	
}

//--------------------------------------------------------------
void testApp::mouseMoved(int x, int y ){
	p.setNextAB((float)x/(float)ofGetWidth(),(float)y/(float)ofGetHeight());
	//p.a = (float)x/(float)ofGetWidth();
	//p.b = (float)y/(float)ofGetHeight();
}

//--------------------------------------------------------------
void testApp::mouseDragged(int x, int y, int button){
	
}

//--------------------------------------------------------------
void testApp::mousePressed(int x, int y, int button){
}

//--------------------------------------------------------------
void testApp::mouseReleased(){

}