Page 1 of 1

Clone of the IBM VGA Palette on VERA

Posted: Sun Nov 12, 2023 10:15 am
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 378 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 13179 times

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

Re: Clone of the IBM VGA Palette on VERA

Posted: Sat Apr 13, 2024 11:08 am
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

Re: Clone of the IBM VGA Palette on VERA

Posted: Sat Apr 13, 2024 2:08 pm
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

Re: Clone of the IBM VGA Palette on VERA

Posted: Sat Apr 13, 2024 5:37 pm
by funkheld
hello , thanks for info.

greeting