We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In HslColor.cs there is a bug preventing Lerp from interpolating the Lightness parameter. Looks like a simple typo:
public static HslColor Lerp(HslColor c1, HslColor c2, float t) { // loop around if c2.H < c1.H var h2 = c2.H >= c1.H ? c2.H : c2.H + 360; return new HslColor( c1.H + t*(h2 - c1.H), c1.S + t*(c2.S - c1.S), c1.L + t*(c2.L - c2.L)); }
The line:
c1.L + t*(c2.L - c2.L));
Should be:
c1.L + t*(c2.L - c1.L));
I've never done a pull request before, I'll look into it and see if I can start the process for this change.
The text was updated successfully, but these errors were encountered:
This is merged, shouldn't we close this ticket?
Sorry, something went wrong.
Yep, if issue was resolved in merge, ticket should have been closed.
No branches or pull requests
In HslColor.cs there is a bug preventing Lerp from interpolating the Lightness parameter. Looks like a simple typo:
The line:
Should be:
I've never done a pull request before, I'll look into it and see if I can start the process for this change.
The text was updated successfully, but these errors were encountered: