Skip to content

Fix double application of FillAlpha in shaded plots - #717

Open
martinecker wants to merge 1 commit into
epezent:masterfrom
martinecker:fix-double-fill-alpha
Open

Fix double application of FillAlpha in shaded plots#717
martinecker wants to merge 1 commit into
epezent:masterfrom
martinecker:fix-double-fill-alpha

Conversation

@martinecker

Copy link
Copy Markdown

ImPlot already applies FillAlpha to the constant fill color in BeginItem. The shaded render paths applied the same value again through GetterConstColor, making fills too transparent due to the double application.

To fix stop passing FillAlpha a second time for constant-color fills in:

  • shaded PlotLine calls
  • shaded PlotStairs calls
  • PlotShaded calls

ImPlot already applies FillAlpha to the constant fill color in BeginItem. The shaded render paths applied the same value again through
GetterConstColor, making fills too transparent due to the double application.

To fix stop passing FillAlpha a second time for constant-color fills in:
- shaded PlotLine calls
- shaded PlotStairs calls
- PlotShaded calls
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.

1 participant