// program draws the diagnols of playpen #include #include "playpen.h" int main() { int x(1); int y(32); int xax(0); fgw::playpen paper; paper.origin(1,32); paper.scale(32); while (xax < 16) { paper.plot(0,0,7); paper.origin(x+=32,y+=32); paper.display(); ++xax; } y = 512; x = 0; xax = 0; paper.origin(x,y); paper.scale(32); while (xax <= 16) { paper.plot(0,0,7); paper.origin(x+=32,y-=32); paper.display(); ++xax; } std::cin.get(); }