blob: 35711f0bf0d37de6b696c58ea780c63d107315fe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#include <stdlib.h>
#include <stdio.h>
#include "../put_pixel.h"
extern char**environ;
int main(int argc, char **argv)
{
// we need a window
_gui_win();
// basically loads font and sets a few constants
vesa_init(NULL);
while(1)
{
int x = rand()%600;
int y = rand()%300;
int width=10;
int height=10;
int col = rand()% 0x00ffff;
put_rect( x, y, width,height,col);
_gui_inval((x<<16)|(y),(width<<16)|height);
}
}
|