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

Fix hsv to rgb #17

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

devel0
Copy link

@devel0 devel0 commented Apr 9, 2023

Make double round ( 1 decimals then 0 decimals ) to overcome lost of precision, see added unit test:

ex. r=0.49999999999999956 would round (r * 255) to 127 instead of expected 128

Note: other cases could require same approach, I only fixed this one.

Note : while library netstandard2.0 its ok, Test and demo frameworks are upgraded from from netcoreapp3.1 to net7 because out of support and generates follow error on unix platforms:

The active test run was aborted. Reason: Test host process crashed : No usable version of libssl was found

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.

1 participant