Page 1 of 1
PALLETTE.BAS. A set of GOSUBS for Pallette Manipulation
Posted: Thu Sep 14, 2023 10:24 am
by ahenry3068
A bunch of wrapper functions around VPOKE. To do useful things with the VERA Pallette.
Documentation in REM Statements of all the GOSUBS and what they do.
PALLETTE.BAS. BASLOAD Edition.
Posted: Mon Oct 30, 2023 4:27 pm
by ahenry3068
Updated these routines to use BASLOAD. Also updated SetDefPal (Set Default Palette) to BVLOAD DPAL.BIN if DPAL.BIN is available. Its faster than reading 512 bytes of DATA in a loop. Kept the Palette DATA in the code as a fallback, if you need the Memory getting rid of that DATA and the code to use it gets about 1kb back of RAM. Included FILEEXISTS subroutine to check for DPAL.BIN.
Also added PAL2BLACK Gosub.
HERES THE GOSUBS
I've written one additional procedure for my Palette Library since I posted. In my code this is inserted between SetDefPal and the Palette DATA. But the beauty of BASLOAD is you can really paste it anywhere in the source as long as its not in the middle of another GOSUB.
NEW GOSUB SAVEPAL2FILE
Re: PALLETTE.BAS. A set of GOSUBS for Pallette Manipulation
Posted: Fri Nov 03, 2023 8:32 pm
by TomXP411
Hi, thanks for submitting this, but we do require that downloads be complete, release-ready programs. I'm going to move this over to the programming topic in the main forum area, as that's where snippets and library code should be posted.
Thanks.