1 #include <psychlops.h>
\r
2 using namespace Psychlops;
\r
5 Psychlops::Color col1;
\r
9 double lmean=0.5, contrast=1.0, theta=0;
\r
11 void psychlops_main() {
\r
13 Canvas sampleA(Canvas::fullscreen);
\r
14 for(int i=0;i<width;i++){
\r
15 for(int j=0;j<height;j++){
\r
16 col1.set(lmean*((contrast*sin((2*PI*i/lambda)+theta))+1));
\r
17 p1.centering().shift((double)-1/2*width+i,(double)-1/2*height+j);
\r
18 sampleA.pix(p1,col1);
\r
22 while(!Input::get(Keyboard::spc));
\r