initial commit
[fifth.git] / doc / modules / gfx2.txt
1                         2D graphic library\r
2                         ------------------\r
3 \r
4 \r
5 lineh           ( color len x y imgbuf -- ) draws horisontal line\r
6                 from X,Y coordinates to right, with specified length.\r
7 linev           ( color len x y imgbuf -- ) draws vertical line\r
8                 down, from coordinates X,Y, with specified length.\r
9 box             ( color x2 x1 y2 y1 imgbuf -- ) draws rectangular\r
10                 box. x2 bust be >= x1, y2 must be >= y1.\r
11                         x1,y1-----------+\r
12                           |             |\r
13                           |             |\r
14                           +-----------x2,y2\r
15 \r
16 flipv           ( imgbuf -- ) flip image vertically.\r
17 imgcoltrans     ( ImgBuf Color ToColor -- ) Translate all pixels in\r
18                 specified image with "Color" into "ToColor".\r
19 imgfill         ( color x y imgbuf -- ) Fill image region starting at location\r
20                 X & Y with specified color.\r