// @topic T01020 FLTK Graphics // @brief Test to verify downloaded textbook CPP and Header files #include "txtbook/Simple_window.h" #include "txtbook/Graph.h" using namespace Graph_lib; int main() { Point tl( 100, 100 ); Simple_window win( tl, 600, 600, "Canvas" ); Graph_lib::Polygon poly; poly.add( Point( 300, 200 ) ); poly.add( Point( 350, 100 ) ); poly.add( Point( 400, 200 ) ); poly.set_color( Color::blue ); poly.set_fill_color( Color::yellow ); win.attach( poly ); win.wait_for_button(); }