diff options
| author | Miguel <m.i@gmx.at> | 2018-10-04 02:17:13 +0200 |
|---|---|---|
| committer | Miguel <m.i@gmx.at> | 2018-10-04 02:17:13 +0200 |
| commit | 81a8252db679351f5ba388b420519724c9c2c2be (patch) | |
| tree | d21bb88fb36f9492c0daf14d67c46f0b22b66def /userspace/pain1.c | |
| parent | ce16fe524c14ccaae67fb634105da5aef08ead48 (diff) | |
reverting userspace idea
Diffstat (limited to 'userspace/pain1.c')
| -rw-r--r-- | userspace/pain1.c | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/userspace/pain1.c b/userspace/pain1.c new file mode 100644 index 0000000..c486636 --- /dev/null +++ b/userspace/pain1.c @@ -0,0 +1,49 @@ +#include "put_pixel.h" +#include "newcalls.h" + +#include <stdlib.h> +#include <stdio.h> + +#define dimx 640 +#define dimy 480 + +/* +void doscolor(int color,int color2) +{ + int i=0; + + for (int y = 0; y < dimy; y++) + for (int x = 0; x < dimx; x++) + { + { + if(x%2&&y%2)put_pixel(x,y,color); + else put_pixel(x,y,color2); + } + } +} +*/ + +int main(int argc,char **argv) +{ + _gui_win(); + + for(int i=0;i<2000;i++) + { + for(int i=0;i<380;i+=40) + { + put_rect(0,0,640,480,0x0000ff); + put_rect(640-i,i,100,100,0xff00ff); + _gui_rect(); + } + + for(int i=380;i>0;i-=80) + { + put_rect(0,0,640,480,0x0000ff); + put_rect(640-i,i,100,100,0x00ffff); + _gui_rect(); + } + } + + return EXIT_SUCCESS; +} + |
