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

Updated calculateOverlayColor to automatically determine the overlay color #5544

Merged
merged 4 commits into from
Feb 8, 2022

Conversation

bheston
Copy link
Collaborator

@bheston bheston commented Jan 26, 2022

Pull Request

📖 Description

Calculating an overlay color is the base of the support for opacity in the color algorithms. This is from some of the proof of concept work and automatically determines if the overlay color should be white or black rather than requiring a color to be passed in.

🎫 Issues

👩‍💻 Reviewer Notes

📑 Test Plan

✅ Checklist

General

  • I have included a change request file using $ yarn change
  • I have added tests for my changes.
  • I have tested my changes.
  • I have updated the project documentation to reflect my changes.
  • I have read the CONTRIBUTING documentation and followed the standards for this project.

⏭ Next Steps

One fewer change in the way of adding support for opacity in the color system!

Copy link
Contributor

@EisenbergEffect EisenbergEffect left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a minor refactoring I think would improve perf/memory, otherwise looks good.

packages/utilities/fast-colors/src/color-converters.ts Outdated Show resolved Hide resolved
packages/utilities/fast-colors/src/color-converters.ts Outdated Show resolved Hide resolved
@bheston bheston force-pushed the users/bheston/auto-overlay-color branch from 0236077 to 62866b1 Compare February 8, 2022 21:17
@bheston bheston merged commit be9de4b into master Feb 8, 2022
@bheston bheston deleted the users/bheston/auto-overlay-color branch February 8, 2022 22:28
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

Successfully merging this pull request may close these issues.

3 participants