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

Add orange to spectra palette #377

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

missionfloyd
Copy link
Contributor

@missionfloyd missionfloyd commented Feb 3, 2025

I noticed that palette index 4 is skipped for Spectra 6 panels.

pal_image.putpalette( (0,0,0, 255,255,255, 255,255,0, 255,0,0, 0,0,0, 0,0,255, 0,255,0) + (0,0,0)*249)

So I tried sending 0x04, and it turns out it's actually capable of displaying orange.
image

(Code that created this image)
buf = []
for i in range(7):
    buf += [(i << 4) + i] * int(width * height / 14)

This fills in the missing slot with orange. I've only done it for python because I'm not as familiar with how the C libraries work.

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

Successfully merging this pull request may close these issues.

1 participant