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

Increase alpha precision in rgba strings created from color arrays #15316

Merged
merged 1 commit into from Nov 10, 2023

Conversation

mike-000
Copy link
Contributor

As noted in #15295 (comment) 2 decimal place alpha in rbga strings is not as precise as eight character hex notation, sometimes differing from the hex value by 2, and this means that color arrays cannot be reliably used to provide string values with precise alpha for canvas drawing. 3 places are needed to match the precision of hex format.

@mike-000 mike-000 marked this pull request as ready for review November 10, 2023 14:09
Copy link

📦 Preview the website for this branch here: https://deploy-preview-15316--ol-site.netlify.app/.

Copy link
Member

@ahocevar ahocevar left a comment

Choose a reason for hiding this comment

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

Thanks, @mike-000

@ahocevar ahocevar merged commit 8b9bf0d into openlayers:main Nov 10, 2023
8 checks passed
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.

None yet

2 participants