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

RGB: Using 2D mappings for effects (+QoL changes) #77

Merged
merged 6 commits into from
Jul 23, 2024

Conversation

henrygab
Copy link
Collaborator

No description provided.

No need for handling both RGB and GRB (or other pixel-specific color ordering).  Updates are all internal to `rgb.c`.

* Rename `CPIXEL_COLOR_RGB` --> `CPIXEL_COLOR`
* Delete `CPIXEL_COLOR_GRB`
* Remove corresponding C11 _Generic() macros
* Remove `RGB_MAX_BRIGHT`
Add mappings for both Rev10 and Rev8 boards:
* coordinates map the pixels into a 256x256 grid
* angles map the pixels into an angle based on 1/256th-of-a-circle units
Not enabled yet, but commented-out as replacements for scanner effect
Add same self-documenting comments to `pixel_angle256` as are provided for `pixel_coordin8`.
@henrygab
Copy link
Collaborator Author

Although this does not include any gamma correction, I think this can be merged.

@henrygab henrygab marked this pull request as ready for review July 17, 2024 13:52
@DangerousPrototypes
Copy link
Owner

So sorry! I didn't see this changed from draft.

@DangerousPrototypes DangerousPrototypes merged commit a7bb193 into DangerousPrototypes:main Jul 23, 2024
3 checks passed
@henrygab henrygab deleted the RGB_QoL_dev branch July 23, 2024 23:21
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.

2 participants