-
Notifications
You must be signed in to change notification settings - Fork 136
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
[color] Very generic colors: Rgb, Hsv and Gray #781
base: develop
Are you sure you want to change the base?
Conversation
984e341
to
e5c2b15
Compare
4bb19da
to
c5e651d
Compare
This is ready for a first review @salkinium |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So far I like it a lot, very nice design with the generic bit width!
67b645a
to
7498e57
Compare
7d115fe
to
4bb51f8
Compare
Apologize my enduring "push --force" thunderstorm. I'm transitioning from poke mode to test local, push after success mode 😬 Tests passed @salkinium! What's left is a good solution for the |
Wanna get some stuff off the table. This PR feels robust, if you find a minute @salkinium 😅... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm fine with these changes, modulo my doc comment.
I'm two weeks from handing in my thesis, so cannot give you a technical review, but if @chris-durand approves this PR, I'll merge it.
Only the Hue component of Hsv ColorType wraps around just like integers do. | ||
|
||
## Flexible Widgets | ||
- [ ] Complete this snippet and make the code actually working |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
We generally don't promise future code in the documentation, cos we usually don't get it done in time ;-P
@TomSaw Did you see what I wrote in #781 (comment) ? The discussion got so lengthy that github hides most of it by default 😅 |
Nope. Totally missed that and check it tomorrow. |
ce9bf1f
to
f3b91c9
Compare
I'm still very interested in merging this, unfortunately, I've completely lost the overview of the review. I think it's almost done, perhaps you want to address the least comments and then we can merge it? |
Hey there. Yes it was almost done. Only chris requested to extract the "arbitrary integer" logic into its own class for good reasons, see #781 (comment) and #781 (comment) Simple task but then, a strong force pulled me into another universe. One with a ton of PHP actually 🤕 I've just read the processing::fibers readme and it sounds gorgeous 🤩 congrats for completing this! |
a298341
to
238376e
Compare
Nothing changed yet.. just cleaned up the tree |
ab380dc
to
7db1732
Compare
d9f6de5
to
3a9b44e
Compare
3a9b44e
to
eed6979
Compare
These Colors may be used on their own. F.e. passed to a colored LED driver or being emitted by color-sensor drivers.
They also represent single pixels for
modm::graphic::Buffer
andmodm::graphic::Display
(Work in progress, see feature/rewrite-graphicFeatures
color::Gray
. Same forcolor::Rgb
andcolor::Hsv
cause they're made from 3xcolor::Gray
modm::graphic::Buffer
andmodm::graphic::Display
(Coming soon, see feature/rewrite-graphicTODO
ProportionalUnsigned::ProportionalUnsigned(T value)