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 Matrix: allow to get/set multiple colors programmatically #1653

Merged
merged 78 commits into from
Dec 30, 2024

Conversation

mcallegari
Copy link
Owner

No description provided.

hjtappe added 30 commits April 2, 2023 21:44
to prepare potential extension for e.g. 5 colors as used in color scripts
- Handle script errors which occur only in .call(), not just parse errors from .evaluate().
- Hand over an array, not just a variable arguments list.
The algorithm prefers the inner colors (1-2-3-4-5) over the outer colors as the
noise function output is a Gauss distribution. To make the colors set from thr
outside more persent, shift them from 1 and 2 to 2 and 3.

Also, format the algorithms.
- Set default ramp value to center (20) as in plasma.js
- Add and improve code comments and their formatting
- Make value calculation explicit to make them available for debugging
- Keep plasma and plasmacolors in sync for comparability.
and add documentation in template empty.js
Also fix several off-by-one errors, such as the edges being out of sync and evaluation of integer properties.
Also let the marquee color take effect and not just add to the existing RGB values.
hjtappe and others added 23 commits June 5, 2024 21:03
RgbScript make stage colors available to scripts
In this way the UI can dinamycally load colors from scripts depending on presets (see updated plasma.js)

Reviewed inefficient code blocks.
On XML save "Color" tag + index attribute rather than changing tags (Color1, Color2, etc)
This covers properties with an effect on acceptColors.
It is not available in the used JS implementation.
including random colors and direct color settings
@coveralls
Copy link

coveralls commented Dec 30, 2024

Coverage Status

coverage: 31.599% (-0.4%) from 31.949%
when pulling 9eb789e on stagecolors
into b14855e on master.

@mcallegari mcallegari merged commit ed5462e into master Dec 30, 2024
19 of 22 checks passed
@mcallegari mcallegari deleted the stagecolors branch December 30, 2024 14:53
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.

3 participants