MiSTer2MEGA65 Color Schema

This page is dedicated for showing the color schema used in the MiSTer2MEGA65 project, done by sy2002#5425 and MJoergen#8874.
You can connect with me as MegaBeauvais#9623 on the MEGA65 Discord server.

With the below, you can click the RED + GREEN + BLUE + DARK + INVERSE boxes and get the color code values.
These hexadecimal values can be used directly in the MiSTer2MEGA65 code - most likely in the M2M/rom/sysdef.asm file.
You should always use the combined value - the other values are just for information and intermediate results.

The colors in the MiSTer2MEGA65 can only use 0% or 100% RGB values - so "0" or "255" - no 33% or alike allowed.
DARK halves the brightest color - so "255" would be "127".
INVERSE shifts background and foreground colors.
An example: Do note that the colors shown here are not a real representation of what you will see on the MEGA65, but it gives at least a good idea of how it will look.

Click on the below boxes:

Background 
0x20
0x10
0x08
 
0x00
Foreground / text 
0x04
0x02
0x01
 
0x07
Dark 
0x40
0x00
Inverse 
0x80
0x00
 
Result of combined background + foreground 
This is a test text
0x07

It seems the magic number you need to use is 0x07 :-)