// Prog: onepixel.cpp // draws one pixel in a libwindow #include #include int main() { // open display window of appropriate size ifm::Wstream w (500, 500, "One Pixel"); int x = 250; int y = 250; // start in the middle // draw a point in the middle w << ifm::Point (x, y); // wait for right mouse click w.wait_for_mouse_click(3); return 0; }