2 using namespace Psychlops;
11 Psychlops::Rectangle rect1[width];
13 Psychlops::Image Noise1[width];
15 void psychlops_main() {
17 Canvas sampleA(Canvas::fullscreen);
19 for(int x=0; x<width; x++){
20 Noise1[x].set(dotsize,height*dotsize);
21 rect1[x].set(dotsize, dotsize);
22 for(int y=0; y<height; y++){
23 temp1=Psychlops::random();
25 Noise1[x].rect(rect1[x],col);
26 rect1[x].shift(0, dotsize);
29 while(!Input::get(Keyboard::spc)){
30 for(int x=0; x<width; x++){
31 phase=(double)-1/2*(width*dotsize)+(int)(x*dotsize+frame*speed*dotsize)%(int)(width*dotsize);
32 Noise1[x].centering().shift(phase,0);