Loading PAL files in QBasicFor the LoadPal subroutine to work, the main program must contain the TYPE definition for Trgb. As there is no byte type in QBasic, STRING * 1 has been used instead: TYPE Trgb The following is a subroutine from the file BLD.BAS that loads a PAL file into the screen's palette: 'Loads a palette
file (of record type Trgb) into colors See Advanced BSV & PAL techniques for information about loading multiple PAL files See the PAL file format page for PAL file structure For more information about manipulating the QBasic palette, see www.qb45.com For loading & drawing BSV files in screen 13, see the loading BSV files page. BSV Babel is copyright Trelsoft freeware. |