-
-
Notifications
You must be signed in to change notification settings - Fork 328
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
Cleanup stroke artifacts in scatter and text #2096
Conversation
Compile Times benchmarkNote, that these numbers may fluctuate on the CI servers, so take them with a grain of salt. All benchmark results are based on the mean time and negative percent mean faster than the base branch. Note, that GLMakie + WGLMakie run on an emulated GPU, so the runtime benchmark is much slower. Results are from running: using_time = @ctime using Backend
# Compile time
create_time = @ctime fig = scatter(1:4; color=1:4, colormap=:turbo, markersize=20, visible=true)
display_time = @ctime Makie.colorbuffer(display(fig))
# Runtime
create_time = @benchmark fig = scatter(1:4; color=1:4, colormap=:turbo, markersize=20, visible=true)
display_time = @benchmark Makie.colorbuffer(display(fig))
|
Looks good to me, but could you add the example you posted in the PR as a test for this situation? |
I reduced the background value to Is there a way to force the texture atlas to get regenerated with the next tagged version? |
Missing reference imagesFound 1 new images without existing references. |
Missing reference imagesFound 2 new images without existing references. |
Missing reference imagesFound 2 new images without existing references. |
Missing reference imagesFound 2 new images without existing references. |
Missing reference imagesFound 2 new images without existing references. |
Description
Using
strokwidth > 0
in GLMakie with a non transparent (and non-background)color
creates a thin outline around characters or makers in text and scatter.With text, white stroke and glow:


With scatter, stroke only:
The reason for this is that the blending uses a transparent version of
color
as the blend target for stroke. So the rgb component of thestrokecolor
and thecolor
get mixed at the edge, resulting in the artifacts seen above. The pr changes the reference color to be a transparent version ofstrokecolor
at the outer edge, fixing this problem.After:
Type of change
Checklist