Nothing Special   »   [go: up one dir, main page]

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

Make brightness function behave like other implementations #1312

Merged
merged 2 commits into from
Sep 2, 2024

Conversation

hipstersmoothie
Copy link
Collaborator
@hipstersmoothie hipstersmoothie commented Sep 2, 2024

closes #1273

Release Notes

This PR changes the brightness function to behave like the css brightness function and other implementations. Previously it was doing something odd. Instead of multiplying the color channel by the multiplier value, it multiplied against the inversion of the current color.

In the current version a value of 1 won't change the colors at all. Values above 1 will brighten the colors, values below 1 will darken the colors.

@hipstersmoothie hipstersmoothie merged commit a425b4c into main Sep 2, 2024
5 checks passed
@hipstersmoothie hipstersmoothie deleted the fix-brightness branch September 2, 2024 05:22
@hipstersmoothie
Copy link
Collaborator Author

🚀 PR was released in v1.1.2 🚀

@hipstersmoothie hipstersmoothie added the released This issue/pull request has been released. label Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

.brightness() method does not affect brightness
1 participant