예제 #1
0
파일: gfx.c 프로젝트: z88dk/z88dk
void main()
{
    int j, i;

    mine->graph = 1;
    mine->width = 255;
    mine->number = '4';

    /* Open map with width 256 on window #4 */
    window(&mine);

    /* Clear the graphics window */
    clg();

    /* Draw a series of concentric circles in the centre of the screen 
 * these go off the screen but don't generate an error - very cool!
 */
    for (i = 50; i != 0; i--) {
        circle(128, 32, i, 1);
        if (i < 25)
            i--;
    }

    draw(0, 0, 255, 63);

    /* Draw a diamond - weak, but it demonstrates relative drawing! */
    plot(200, 32);

    drawr(10, 10);
    drawr(10, -10);
    drawr(-10, -10);
    drawr(-10, 10);

    /* Close the graphics window */
    closegfx(&mine);
}
예제 #2
0
파일: dstar2.c 프로젝트: meesokim/z88dk
void MyExit(void)
{
	closegfx(graphics);     /* Close the Map window */
	puts(baswindres);
	exit(0);                /* Get outta here! */
}