home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Resource Library: Graphics
/
graphics-16000.iso
/
msdos
/
animutil
/
fastgfx
/
fg303e
/
expas.arj
/
FGDOC
/
EXAMPLES
/
PASCAL
/
10-17.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1993-09-30
|
680b
|
38 lines
program main;
uses fgmain, fgbitmap, fgmisc;
const
arrow : array[0..11] of byte = (6,1,9,2,2,9,1,19,7,2,8,1);
var
old_mode : integer;
begin
if (fg_testmode(4,1) = 0) then
begin
write('This program requires a 320 ');
writeln('x 200 CGA graphics mode.');
exit;
end;
old_mode := fg_getmode;
fg_setmode(4);
fg_setclip(0,15,0,199);
fg_setcolor(3);
fg_rect(0,319,0,199);
fg_move(10,10);
fg_drawmask(arrow,12,10);
fg_move(10,20);
fg_clipmask(arrow,12,10);
fg_move(10,30);
fg_revmask(arrow,12,10);
fg_move(10,40);
fg_flipmask(arrow,12,10);
fg_waitkey;
fg_setmode(old_mode);
fg_reset;
end.