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

Color.transparent isn’t opaque #23

Open
vojtamolda opened this issue Jan 8, 2022 · 1 comment
Open

Color.transparent isn’t opaque #23

vojtamolda opened this issue Jan 8, 2022 · 1 comment
Assignees
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed

Comments

@vojtamolda
Copy link
Owner

The Color.transparent static property isn't actually transparent. It's defined as Color.RGB(255, 255, 255, 1.0) but should be Color.RGB(255, 255, 255, 0.0) instead.

@vojtamolda vojtamolda added bug Something isn't working help wanted Extra attention is needed good first issue Good for newcomers labels Jan 8, 2022
@vojtamolda vojtamolda added this to the Ploly.swift 0.6.0 milestone Jan 8, 2022
@vojtamolda vojtamolda self-assigned this Jan 8, 2022
@vojtamolda
Copy link
Owner Author

The bug prevents natural use of Color.transparent to achieve completely opaque plot backgrounds and paper, i.e. setting the Layout.plotBackgroundColor = .transparent and Layout.paperBackgroundColor = .transparent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant