Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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
@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

2 participants