Page 1 of 1
Web Emulator: Background color change
Posted: Sun Jan 05, 2025 3:46 am
by HunterDX
I'd like to suggest changing the current background color of the Web Emulator.
It is currently set to #2773b3 (pale blue) which can take away from a game's aesthetic appeal if the color palettes are different. See example attached.
I suggest changing it to #000000 (black). A neutral color will always work well.
Re: Web Emulator: Background color change
Posted: Sun Jan 05, 2025 4:35 am
by DragWx
What if it used the VERA's current border color instead?
Re: Web Emulator: Background color change
Posted: Mon Jan 06, 2025 3:58 pm
by HunterDX
Interesting, what is the default value for this register? I haven't considered this register before.
Re: Web Emulator: Background color change
Posted: Mon Jan 06, 2025 5:49 pm
by Java Cake Games
The default is 0 (in the default palette, black).
Re: Web Emulator: Background color change
Posted: Mon Jan 06, 2025 6:12 pm
by DragWx
The border color is 0 by default, but users are allowed to choose a different color in the X16 menu.
The border is also not visible in VGA mode unless you resize or change the active area of the screen.
Re: Web Emulator: Background color change
Posted: Wed Jan 08, 2025 5:06 pm
by HunterDX
If the default color is black and it can be configured by the dev or user, then I like this approach!
Re: Web Emulator: Background color change
Posted: Wed Jan 08, 2025 7:15 pm
by doslogo
This was a common problem even back in the 90s with VGA DOS games, the border was picking up whatever color the first index of the palette was using, but VERA has this awesome register that can set which palette index to use for the border:
Code: Select all
BORDER_PAL_INDEX = 0 ; Use any number between 0-255, select the color that most suits your game!
lda #BORDER_PAL_INDEX ; Border color is only inactive display!
sta $9F2C ; Though, make sure DCSEL=0 before writing to $9F2C
Like conversion programs or gif image editors put whatever color they want in palette index 0, this has no affect usually, but I have seen horror when they put white there and the image is loaded with VGA. I am pro-border hardware, and I am designing my game with the border in mind since day 0.