\8fÍ/3.1.4_\94­\93W\93I\82È\93à\97e(Image)1.cpp - RSS feed" href="/view?p=psychlops/cpp_document.git;a=rss;f=Psychlops.manual/sample_cpp_file/3%C2%8F%C3%8D/3.1.4_%C2%94%C2%AD%C2%93W%C2%93I%C2%82%C3%88%C2%93%C3%A0%C2%97e(Image)1.cpp" type="application/rss+xml" /> \8fÍ/3.1.4_\94­\93W\93I\82È\93à\97e(Image)1.cpp - RSS feed (no merges)" href="/view?p=psychlops/cpp_document.git;a=rss;f=Psychlops.manual/sample_cpp_file/3%C2%8F%C3%8D/3.1.4_%C2%94%C2%AD%C2%93W%C2%93I%C2%82%C3%88%C2%93%C3%A0%C2%97e(Image)1.cpp;opt=--no-merges" type="application/rss+xml" /> \8fÍ/3.1.4_\94­\93W\93I\82È\93à\97e(Image)1.cpp - Atom feed" href="/view?p=psychlops/cpp_document.git;a=atom;f=Psychlops.manual/sample_cpp_file/3%C2%8F%C3%8D/3.1.4_%C2%94%C2%AD%C2%93W%C2%93I%C2%82%C3%88%C2%93%C3%A0%C2%97e(Image)1.cpp" type="application/atom+xml" /> \8fÍ/3.1.4_\94­\93W\93I\82È\93à\97e(Image)1.cpp - Atom feed (no merges)" href="/view?p=psychlops/cpp_document.git;a=atom;f=Psychlops.manual/sample_cpp_file/3%C2%8F%C3%8D/3.1.4_%C2%94%C2%AD%C2%93W%C2%93I%C2%82%C3%88%C2%93%C3%A0%C2%97e(Image)1.cpp;opt=--no-merges" type="application/atom+xml" />

OSDN Git Service

hk
[psychlops/cpp_document.git] / Psychlops.manual / sample_cpp_file / 3\8fÍ / 3.1.4_\94­\93W\93I\82È\93à\97e(Image)1.cpp
1 #include <psychlops.h>
2 using namespace Psychlops;
3
4 double width=100,height=100;
5 Psychlops::Rectangle rect1(width,height);
6 Psychlops::Color col;
7 Psychlops::Image Noise1(rect1);
8
9 void psychlops_main() {
10
11         Canvas sampleA(Canvas::fullscreen);
12         Noise1.centering();
13         for(int x=0; x<width; x+=3){
14                 for(int y=0; y<height; y+=3){
15                         col.set(0.5,0.2,0.8);
16                         Noise1.pix(x,y,col);
17                 }
18         }
19         Noise1.quicken();
20         Noise1.draw();
21         sampleA.flip();
22         while(!Input::get(Keyboard::spc));
23 }