ws: First pass at "mono" model color emulation. #1834
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The "mono" WonderSwan has an FSTN display, same as the Game Boy Pocket and resulting in the same display hue. While there are more accurate palettes for FSTN displays available these days, I've decided to use Near's GBP palette for consistency. It also has sixteen shades of grey with a contrast slider; according to lidnariq, with the optimal contrast wheel setting, they follow a linear gamma of 1.0.
This PR adds color emulation to the "mono" WonderSwan under these assumptions; I am a little concerned that not every game expects the same contrast wheel setting, but I'd say it's good enough for a first pass. A proper second pass would require photographic documentation to create a more precise palette, probably.