OSDN Git Service

Appendix
[psychlops/cpp_document.git] / Psychlops.manual / sample_cpp_file / exam / Image_oval()1.cpp
1 #include <psychlops.h>
2 using namespace Psychlops;
3
4 Psychlops::Image Noise1(300,300);
5 Psychlops::Rectangle rect1(100,100);
6
7 void psychlops_main() {
8
9         Canvas sampleA(Canvas::fullscreen);
10         Noise1.centering();
11         Noise1.oval(rect1,Color::red);
12         Noise1.draw();
13         sampleA.flip();
14         while(!Input::get(Keyboard::spc));
15 }