main() // test the functions { // initialize the graphics system int graphdriver = DETECT, graphmode; initgraph(&graphdriver, &graphmode, "..\\bgi"); Circle MyCircle(100, 200, 50); // declare a circle object MyCircle.Show(); // show it getch(); // wait for keypress MyCircle.MoveTo(200, 250); // move the circle (tests hide // and show also) getch(); MyCircle.Expand(50); // make it bigger getch(); MyCircle.Contract(75); // make it smaller getch(); closegraph(); return 0; }
//-------------------------------------------------------------- void testApp::mouseDragged(int x, int y, int button){ // circles.push_back(new MyCircle(ofPoint(mouseX, mouseY),ofRandom(4,16))); oreCircles.push_back(MyCircle(ofPoint(mouseX,mouseY), ofRandom(4,16))); }