1 #include <psychlops.h>
\r
2 using namespace Psychlops;
\r
4 double width=100,height=100;
\r
6 double centerX=700,centerY=500;
\r
7 Psychlops::Rectangle rect1(width,height);
\r
8 Psychlops::Color col;
\r
9 Psychlops::Image Noise1;
\r
11 void psychlops_main() {
\r
13 Canvas sampleA(Canvas::fullscreen);
\r
14 rect1.shift(centerX,centerY);
\r
15 for(int x=0; x<width; x++){
\r
16 for(int y=0; y<height; y++){
\r
17 temp1=Psychlops::random();
\r
19 sampleA.pix(x+centerX,y+centerY,col);
\r
22 sampleA.to(Noise1,rect1);
\r
24 while(!Input::get(Keyboard::spc));
\r
25 Noise1.save("test.png");
\r