\8fÍ/3.2_\83\89\83\93\83_\83\80\83h\83b\83g\82\8e.cpp - RSS feed" href="/view?p=psychlops/cpp_document.git;a=rss;f=Psychlops.manual/sample_cpp_file/3%C2%8F%C3%8D/3.2_%C2%83%C2%89%C2%83%C2%93%C2%83_%C2%83%C2%80%C2%83h%C2%83b%C2%83g%C2%82%C2%8E.cpp" type="application/rss+xml" /> \8fÍ/3.2_\83\89\83\93\83_\83\80\83h\83b\83g\82\8e.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.2_%C2%83%C2%89%C2%83%C2%93%C2%83_%C2%83%C2%80%C2%83h%C2%83b%C2%83g%C2%82%C2%8E.cpp;opt=--no-merges" type="application/rss+xml" /> \8fÍ/3.2_\83\89\83\93\83_\83\80\83h\83b\83g\82\8e.cpp - Atom feed" href="/view?p=psychlops/cpp_document.git;a=atom;f=Psychlops.manual/sample_cpp_file/3%C2%8F%C3%8D/3.2_%C2%83%C2%89%C2%83%C2%93%C2%83_%C2%83%C2%80%C2%83h%C2%83b%C2%83g%C2%82%C2%8E.cpp" type="application/atom+xml" /> \8fÍ/3.2_\83\89\83\93\83_\83\80\83h\83b\83g\82\8e.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.2_%C2%83%C2%89%C2%83%C2%93%C2%83_%C2%83%C2%80%C2%83h%C2%83b%C2%83g%C2%82%C2%8E.cpp;opt=--no-merges" type="application/atom+xml" />

OSDN Git Service

hk
[psychlops/cpp_document.git] / Psychlops.manual / sample_cpp_file / 3\8fÍ / 3.2_\83\89\83\93\83_\83\80\83h\83b\83g\82\8e.cpp
1 #include <psychlops.h>
2 using namespace Psychlops;
3
4 double width=1,height=100;
5 double temp1;
6 Psychlops::Rectangle rect1(width,height);
7 Psychlops::Color col;
8 Psychlops::Image Noise1(rect1,Image::GRAY);
9
10 void psychlops_main() {
11
12         Canvas sampleA(Canvas::fullscreen);
13         for(int i=0;i<200;i++){
14                 for(int x=0; x<width; x++){
15                         for(int y=0; y<height; y++){
16                                 temp1=Psychlops::random();
17                                 col.set(temp1);
18                                 Noise1.centering().shift((double)-1/2*200+i,0);
19                                 Noise1.pix(x,y,col);
20                         }
21                 }
22                 Noise1.draw();
23         }
24         sampleA.flip();
25         while(!Input::get(Keyboard::spc));
26 }