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

[ColorUtil] Extend rgbToHsb(PercentType[]) for RGBW #3882

Merged
merged 2 commits into from
Dec 3, 2023

Conversation

holgerfriedrich
Copy link
Member

rgbToHsb(PercentType[]) supports arrays of size 4 (RGBW) in addition to and arrays of size 3 (RGB).

In contrast to rgbToHsb(int[4]) this does not introduce errors (rounding to int).

@genesis81 FYI

rgbToHsb(PercentType) supports arrays of size 4 (RGBW) in addition to and arrays of size 3 (RGB).

Signed-off-by: Holger Friedrich <[email protected]>
@holgerfriedrich holgerfriedrich requested a review from a team as a code owner November 22, 2023 23:00
@genesis81
Copy link
Contributor

Looks good, thank for the support.

Signed-off-by: Holger Friedrich <[email protected]>
@holgerfriedrich
Copy link
Member Author

Copy link
Member

@kaikreuzer kaikreuzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@kaikreuzer kaikreuzer merged commit 9a9726b into openhab:main Dec 3, 2023
3 checks passed
@kaikreuzer kaikreuzer added the enhancement An enhancement or new feature of the Core label Dec 3, 2023
@kaikreuzer kaikreuzer added this to the 4.1 milestone Dec 3, 2023
@holgerfriedrich holgerfriedrich deleted the pr-colorutil-rgbwpercent branch December 3, 2023 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An enhancement or new feature of the Core
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants