I just finished adding a couple of new features to gfxlib... don't worry, not much ahead :)
PALETTE now supports also the new construct:
Code: Select all
PALETTE GET index, r, g, b
PALETTE GET index, color
PALETTE GET USING pal
The first retrieves current palette color index RGB values and stores them in r, g, b, in the range 0-255.
The second gets specified color index RGB and stores it as a packed value in color.
The third allows to get the entire current palette into the pal array, in packed RGB form.
These forms are specular to the usual old PALETTE setting forms, and have been added as an easier way to get the current palette instead of using the old INP/OUT tricks (which continue to be emulated in FB anyways).
Also, I've added the new SCREENSYNC built-in routine to wait for vertical blank synchronization. This is the same as doing WAIT &h3DA,8, so you don't have to remember this arcaic form.