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

Allow setting a line's fill area's alpha channel #34

Merged
merged 1 commit into from
Sep 30, 2024

Conversation

maxded
Copy link
Contributor

@maxded maxded commented Jul 30, 2024

Hey! I'm trying to achieve stacked plot lines and came across Line::fill, which does exactly what I want. The only problem with drawing the fill area is that a user doesn't have control over the alpha channel. As a result, having multiple fill areas within a single plot causes the colors to blend, which is undesired in my case. See the images below:

Current:

image

Desired:

image

This change adds Line::fill_alpha, which allows a user to explicitly set the alpha channel used for drawing the fill area. The default value for fill_alpha remains the same as before, causing this PR to not be a breaking change.

@emilk emilk merged commit e96f4e1 into emilk:main Sep 30, 2024
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.

4 participants