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

Extensions .lighten(), .darken() not work #248

Open
lemkoleg opened this issue Dec 5, 2024 · 3 comments
Open

Extensions .lighten(), .darken() not work #248

lemkoleg opened this issue Dec 5, 2024 · 3 comments

Comments

@lemkoleg
Copy link

lemkoleg commented Dec 5, 2024

Extensions .lighten(), .darken() not work

@lemkoleg
Copy link
Author

lemkoleg commented Dec 5, 2024

But, work Color.toHct().withTone(newTone: Double).toColor() :)

@jordond
Copy link
Owner

jordond commented Dec 5, 2024

From the KDoc:

@return [Color] The lightened color or the original color if the lightened color is not valid.

Can you verify the value returned? The code comes straight from the MCU.

@lemkoleg
Copy link
Author

lemkoleg commented Dec 5, 2024

returned original color

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

No branches or pull requests

2 participants