$INCLUDE: 'C:\FG\FASTGRAF.FI'

      PROGRAM MAIN

      INTEGER*1 TRIANGLE(45), TRIANGLE16(25)
      INTEGER OLD_MODE
      INTEGER FG_GETMODE

      DATA TRIANGLE /
     +   #01,#01,#01,#01,#01,#01,#01,#01,#01,
     +   #00,#01,#02,#02,#02,#02,#02,#01,#00,
     +   #00,#00,#01,#02,#02,#02,#01,#00,#00,
     +   #00,#00,#00,#01,#02,#01,#00,#00,#00,
     +   #00,#00,#00,#00,#01,#00,#00,#00,#00/

      CALL FG_INITPM
      OLD_MODE = FG_GETMODE()

      CALL FG_SETMODE(19)
      CALL FG_SETCOLOR(7)
      CALL FG_FILLPAGE
      CALL FG_MOVE(156,101)
      CALL FG_DRWIMAGE(TRIANGLE,9,5)
      CALL FG_WAITKEY

      CALL FG_SETMODE(13)
      CALL FG_SETCOLOR(7)
      CALL FG_FILLPAGE
      CALL FG_PACK(TRIANGLE,TRIANGLE16,9,5)
      CALL FG_MOVE(156,101)
      CALL FG_DRWIMAGE(TRIANGLE16,5,5)
      CALL FG_WAITKEY

      CALL FG_SETMODE(OLD_MODE)
      CALL FG_RESET

      STOP ' '
      END

