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

      PROGRAM MAIN

      INTEGER*2 OLD_MODE
      INTEGER*2 FG_GETMODE

      OLD_MODE = FG_GETMODE()
      CALL FG_SETMODE(18)
      CALL FG_SETCOLOR(9)
      CALL FG_FILLPAGE
      CALL FG_SETCOLOR(14)

      CALL FG_MOVE(0,0)
      CALL FG_JUSTIFY(-1,1)
      CALL FG_PRINT('Fastgraph',9)
      CALL FG_MOVE(320,0)
      CALL FG_JUSTIFY(0,1)
      CALL FG_PRINT('Fastgraph',9)
      CALL FG_MOVE(639,0)
      CALL FG_JUSTIFY(1,1)
      CALL FG_PRINT('Fastgraph',9)

      CALL FG_MOVE(0,240)
      CALL FG_JUSTIFY(-1,0)
      CALL FG_PRINT('Fastgraph',9)
      CALL FG_MOVE(320,240)
      CALL FG_JUSTIFY(0,0)
      CALL FG_PRINT('Fastgraph',9)
      CALL FG_MOVE(639,240)
      CALL FG_JUSTIFY(1,0)
      CALL FG_PRINT('Fastgraph',9)

      CALL FG_MOVE(0,479)
      CALL FG_JUSTIFY(-1,-1)
      CALL FG_PRINT('Fastgraph',9)
      CALL FG_MOVE(320,479)
      CALL FG_JUSTIFY(0,-1)
      CALL FG_PRINT('Fastgraph',9)
      CALL FG_MOVE(639,479)
      CALL FG_JUSTIFY(1,-1)
      CALL FG_PRINT('Fastgraph',9)
      CALL FG_WAITKEY

      CALL FG_SETMODE(OLD_MODE)
      CALL FG_RESET

      STOP ' '
      END
