To merge after #7 and #9: a normalization for the different colours that we load in from the CHIP-8 archive. This makes using the colours much easier for emulator developers because they know exactly what to expect.
From the Archive we get:
CSS colour names (like lavender and deeppink)
Colours without a leading # (like 00AA55)
Colours with three characters (like #0A5)
Colours with capitals and lowercase characters
After this PR we only get:
Colours with a leading # and six lowercase characters (like #00aa55)
There is a regex pattern in the JSON schema to make sure it stays that way.
To merge after #7 and #9: a normalization for the different colours that we load in from the CHIP-8 archive. This makes using the colours much easier for emulator developers because they know exactly what to expect.
From the Archive we get:
lavender
anddeeppink
)#
(like00AA55
)#0A5
)After this PR we only get:
#
and six lowercase characters (like#00aa55
)There is a regex pattern in the JSON schema to make sure it stays that way.