Fixed HTML style.
[fifth.git] / doc / commands / graphic.txt
1                         Graphic & text\r
2                         --------------\r
3 \r
4 .               ( n -- ) print number on screen\r
5 \r
6 d.              ( n -- ) print number on screen in decimal\r
7 \r
8 ?               ( addr -- ) print 32 bit value located at addr.\r
9 \r
10 ." <string>"    ( -- ) print string into screen. Immideately\r
11                 compiles.\r
12                 ex: : greeting ." Hello, World" ;\r
13 \r
14 tab.            ( -- ) print tabulator\r
15 \r
16 calccol         ( b g r -- c ) calculate color what best matches given\r
17                 Blue Green & Red values. Values must be in range 0 - 255.\r
18 \r
19 imgalloc        ( xsize ysize -- imgbuf ) allocate image buffer for\r
20                 specified size.\r
21 \r
22 imgsize         ( imgbuf -- ) print on the screen X & Y size of image\r
23                 buffer.\r
24 \r
25 point           ( x y imgbuf -- addr ) returns memory address for specified\r
26                 pixel.\r
27 \r
28 pset            ( color x y imgbuf -- ) set graphic point\r
29 \r
30 boxf            ( x1 x2 y1 y2 imgbuf color -- ) draw filled box\r
31 \r
32 cls             ( imgbuf -- ) clear image buffer\r
33 \r
34 setpal          ( b g r color -- ) set palette value for specified color.\r
35                 values bust be in size 0 - 63.\r
36 \r
37 putchar         ( char color x y imgbuf -- ) put graphic character in\r
38                 imagebuffer to specified (x & y) location.\r
39 \r
40 scroll          ( x y imgbuf -- ) scroll in imgbuf.\r
41 \r
42 scrollf         ( color x y screen -- )  scroll and fill empty space with\r
43                 given color.\r
44 \r
45 at!             ( x y -- ) set cursor location\r
46 curc!           ( color -- ) set text color\r
47 curb!           ( solor -- ) set backround color\r
48 \r
49 colnorm         ( -- ) set text color to normal\r
50 colneg          ( -- ) set text color to negative (selected)\r
51 \r
52 dyntype         ( dynhandle -- ) display contenc of dynamic memory on screen\r
53 fsdisp          ( file -- ) clear screen, display file, and wait for key\r
54 \r
55 type            ( addr length -- )\r
56                 Types on the screen string, from memory at  addr  and\r
57                 specified length.\r
58 \r
59 write           ( addr -- )\r
60                 Types on the screen string, from memory at "addr"+1\r
61                 length is taken from "addr" .\r
62 \r
63 screen  const   32 bit\r
64                 Holds handle of screen buffer.\r
65 \r
66 copyscreen      ( SrcImgHandle DestImgHandle -- ) copy contenc of source\r
67                 image to destination image. Source and destination images\r
68                 must have same size.\r