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

      PROGRAM MAIN

      INTEGER*1 MATRIX(4)
      INTEGER*2 OLD_MODE
      INTEGER*2 FG_GETMODE

      OLD_MODE = FG_GETMODE()
      CALL FG_SETMODE(13)

      MATRIX(1) = #55
      MATRIX(2) = #AA
      MATRIX(3) = #55
      MATRIX(4) = #AA
      CALL FG_SETCOLOR(9)
      CALL FG_DRECT(0,49,0,49,MATRIX)

      MATRIX(1) = #AA
      MATRIX(2) = #55
      MATRIX(3) = #AA
      MATRIX(4) = #55
      CALL FG_SETCOLOR(15)
      CALL FG_DRECT(0,49,0,49,MATRIX)
      CALL FG_WAITKEY

      CALL FG_SETMODE(OLD_MODE)
      CALL FG_RESET

      STOP ' '
      END
