$INCLUDE: 'C:\FG\INTRFACE.FOR'

      PROGRAM MAIN

      INTEGER*2 DELAY, JUMP
      PARAMETER (DELAY=2)
      PARAMETER (JUMP=4)

      INTEGER*2 I
      INTEGER*2 OLD_MODE
      INTEGER*2 FG_AUTOMODE, FG_GETMAXX, FG_GETMAXY, FG_GETMODE

      OLD_MODE = FG_GETMODE()
      CALL FG_SETMODE(FG_AUTOMODE())

      CALL FG_SETCOLOR(15)
      CALL FG_MOVE(0,JUMP)
      CALL FG_DRAW(FG_GETMAXX(),JUMP)
      CALL FG_DRAW(FG_GETMAXX(),FG_GETMAXY()-JUMP)
      CALL FG_DRAW(0,FG_GETMAXY()-JUMP)
      CALL FG_DRAW(0,JUMP)
      CALL FG_WAITKEY

      DO 10 I = 1,6
         CALL FG_PAN(0,JUMP)
         CALL FG_WAITFOR(DELAY)
         CALL FG_PAN(0,0)
         CALL FG_WAITFOR(DELAY)
10    CONTINUE

      CALL FG_SETMODE(OLD_MODE)
      CALL FG_RESET

      STOP ' '
      END
