ColorHelper
ColorHelper copied to clipboard
Hello, I am currently using the version that is on NuGet and I stubbled across this issue by accident. Something in the calculations is incorrect for this method. For example...
- the parameter 'hashCode' allows to use additional a hashcode for calculating the random number so its more exact then only using the milliseconds. - the parameter 'colorTheme' allows to...
In ColorHelper/ColorHelper/Converter/ColorConverter.cs, at lines 23 to 25: c = (1 - modifiedR - k) / (1 - k); m = (1 - modifiedG - k) / (1 - k); y...
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...
The `YuvToYiq` was returning `YUV`. Fixed that!
**This PR proposes a breaking change**. Currently, this library causes lots of unavoidable allocations. That makes it unusable when developing games, where performance is critical and allocations should be avoided...
ColorName.White returns RGB(100,100,100) which isn't white.