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

Two ColorUtils Improvements #63

Closed
wants to merge 2 commits into from
Closed

Two ColorUtils Improvements #63

wants to merge 2 commits into from

Conversation

DeviousNull
Copy link
Contributor

I have made two changes to the ColorUtils class to prepare for my pull request for OpenPeripheralAddons.

#1:
The ColorMeta enum now has another property, paintId, to store the paint-compatible hex-character for a color.

#2:
I replaced the formula used in ColorUtils::RGB.distanceSq(RGB) with the one which appears here. This new formula addresses how humans perceive red light as more "bright" than blue light.

@boq
Copy link
Member

boq commented Nov 27, 2016

As discussed in OpenMods/OpenPeripheral-Addons#90, pulling only part of it via 91b1dff. Thank you!

@boq boq closed this Nov 27, 2016
@DeviousNull DeviousNull deleted the color-utils-changes branch November 28, 2016 00:00
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.

None yet

2 participants