home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Vectronix 2
/
VECTRONIX2.iso
/
FILES_07
/
LATTIC_3.ZIP
/
EXAMPLES
/
LAF.C
< prev
next >
Wrap
C/C++ Source or Header
|
1990-05-14
|
1KB
|
61 lines
/*
* Demonstrate the Line-A seed fill routine, using right mouse button
* to abort
*
* lc -Lg -v laf.c
*
* Copyright (c) 1990 HiSoft
*/
#include <linea.h>
#include <vdi.h>
#include <aes.h>
short __saveds sab(void)
{
return V_MOUSE_BT; /* stop when a button pressed */
}
main()
{
short v_handle,junk;
short pattern[]=
{
0x0940, /* %0000 1001 0100 0000 */
0x0f40, /* %0000 1111 0100 0000 */
0x0940, /* %0000 1001 0100 0000 */
0x64dc, /* %0110 0100 1101 1100 */
0x8a88, /* %1000 1010 1000 1000 */
0xcac8, /* %1100 1010 1100 1000 */
0x2a88, /* %0010 1010 1000 1000 */
0xa488, /* %1100 0100 1000 1000 */
};
appl_init();
v_handle=graf_handle(&junk,&junk,&junk,&junk);
linea0();
hidemouse();
vs_clip(v_handle,0,NULL);
vswr_mode(v_handle,MD_REPLACE);
vsf_color(v_handle,BLACK);
vsf_interior(v_handle,FIS_HOLLOW);
vsf_perimeter(v_handle,1);
v_circle(v_handle,V_X_MAX/2,V_Y_MAX/2,V_Y_MAX/2);
vsf_color(v_handle,BLACK);
PTSIN[0]=V_X_MAX/2;
PTSIN[1]=V_Y_MAX/2;
INTIN[0]=-1;
XMINCL=0;
YMINCL=0;
XMAXCL=V_X_MAX;
YMAXCL=V_Y_MAX;
SEEDABORT=sab;
WMODE=MD_REPLACE;
PATPTR=pattern;
PATMSK=sizeof(pattern)/sizeof(short)-1;
MFILL=0;
lineaf();
showmouse(1);
appl_exit();
}