IBM MODE 13H PALETTE CLONE

All aspects of programming on the Commander X16.
Post Reply
User avatar
ahenry3068
Posts: 1194
Joined: Tue Apr 04, 2023 9:57 pm

IBM MODE 13H PALETTE CLONE

Post by ahenry3068 »

I cloned a very reasonable approximation of the IBM VGA Mode 13h default palette on VERA. I thought it could be useful for anyone porting code from that platform.

Archive contains DPAL.BIN -- 512 byte VERA Palette Image (default VERA Colors) MODE13H.PAL -- 512 byte VERA Palette Image (Mode 13h clone) VGAPALETTE -- Comma Delimited Text file I used to help create the VGA Palette. FORMAT Is Pal_Entry,R,G,B where R,G & B are real numbers between 0-100 and are calculated as a percentage of R,G,B Pixel Value. I got these numbers by Loading the VGA Palette Graphic from Wikipedia and Eye Droppering it in GIMP. (If you examine this file you will see entries 16-31 don't exist, VGA & VERA both use this for Gray Scale so no change is needed) VGAPAL.PRG -- The BASIC program that creates MODE13H.PAL (Tokenized) VGAPAL.BAS -- The BASIC Source for VGAPAL.PRG (BASLOAD Syntax)


THE CODE AND PALETTE ARCHIVE
VGAPAL.zip
(6.9 KiB) Downloaded 257 times

The VGA Mode 13h Palette from Wikipedia
VGA_palette_with_black_borders.svg.png
VGA_palette_with_black_borders.svg.png (14.46 KiB) Viewed 8483 times


The VGA Clone Palette on the X16 Emulator.
X16_VGAPAL.png
X16_VGAPAL.png (7.46 KiB) Viewed 8483 times
Post Reply