#include "ofApp.h" //-------------------------------------------------------------- void ofApp::setup() { ofSetCircleResolution(200); bigCircle.setup(100,100,50, ofColor(255, 195, 22)); circle1.setup(120, 80, 20, ofColor().red); circle2.setup(200, 80, 20, ofColor().green); circle3.setup(280, 80, 20, ofColor().blue); } //-------------------------------------------------------------- void ofApp::update() { } //-------------------------------------------------------------- void ofApp::draw() { ofBackground(0); circle1.draw(); circle2.draw(); circle3.draw(); bigCircle.draw(); } //-------------------------------------------------------------- void ofApp::keyPressed(int key){ } //-------------------------------------------------------------- void ofApp::keyReleased(int key){ } //-------------------------------------------------------------- void ofApp::mousePressed(int x, int y, int button) { } //-------------------------------------------------------------- void ofApp::mouseReleased(int x, int y, int button) { } //-------------------------------------------------------------- void ofApp::mouseMoved(int x, int y) { bigCircle.setPos(x, y); if ((ofDist(bigCircle.getX(), bigCircle.getY(), circle1.getX(), circle1.getY()) < (bigCircle.getRadius() + circle1.getRadius()))) { ofLogNotice("over circle1"); }; } //-------------------------------------------------------------- void ofApp::exit() { }