Clone of the IBM VGA Palette on VERA

For posting library code and examples.
Post Reply
User avatar
ahenry3068
Posts: 1144
Joined: Tue Apr 04, 2023 9:57 pm

Clone of the IBM VGA Palette on VERA

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 377 times


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

The VGA Clone Palette on the X16 Emulator
X16_VGAPAL.png
X16_VGAPAL.png (7.46 KiB) Viewed 13175 times
funkheld
Posts: 322
Joined: Mon Feb 26, 2024 11:11 am

Re: Clone of the IBM VGA Palette on VERA

Post by funkheld »

Hi good afternoon.
I draw with VGA-Pal mode 13.

is your pal dpal.bin your converted pal from vga-pal mode 13?

That means when I load it into the x16 I have the color of mode 13 vga?

Thanks.
greeting
User avatar
ahenry3068
Posts: 1144
Joined: Tue Apr 04, 2023 9:57 pm

Re: Clone of the IBM VGA Palette on VERA

Post by ahenry3068 »

funkheld wrote: Sat Apr 13, 2024 11:08 am Hi good afternoon.
I draw with VGA-Pal mode 13.

is your pal dpal.bin your converted pal from vga-pal mode 13?

That means when I load it into the x16 I have the color of mode 13 vga?

Thanks.
greeting
Yes, you are loading IBM PC Default colors. DPAL.BIN is still VERA Default. The IBM one is mode13h.pal
funkheld
Posts: 322
Joined: Mon Feb 26, 2024 11:11 am

Re: Clone of the IBM VGA Palette on VERA

Post by funkheld »

hello , thanks for info.

greeting
Post Reply