Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

64bit Colour #28

Open
OzHawk opened this issue Sep 2, 2020 · 1 comment
Open

64bit Colour #28

OzHawk opened this issue Sep 2, 2020 · 1 comment

Comments

@OzHawk
Copy link
Collaborator

OzHawk commented Sep 2, 2020

This is an improvement request.

The FabGL VGA32 hardware "standard" is capable of 6bit colour. Is it possible to enable this in Eris?

@paulscottrobson
Copy link
Owner

Yes. It's one of those things that is relatively easy to do but I didn't want to force having 6 bit colour on any platform. It's a quasi-palette system (the palette has to be set up before drawing) but just at present uses RGB. It's a write to $FF10 to set the palette, and the lower byte is 00000bgr, so it would be easy enough to extend this.

The system can theoretically have 256 different colours, but there's only enough RAM in an ESP32 for 4 bit planes, which can be divided into 2 planes, though they don't really exist physically, it's done by colour mapping to work as a background/foreground system for sprite graphics.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants