Scatterplot with dasharray stroke? #4512
Unanswered
chrisgervang
asked this question in
Q&A
Replies: 1 comment
-
You can subclass the Assume you send a custom uniform uniform vec2 dashArray; After this line: Add something along the lines of: float circumferencePixels = outerRadiusPixels * PI * 2.0;
float numOfDashes = floor(circumferencePixels / (dashArray.x + dashArray.y));
float anglePerDash = PI * 2.0 / numOfDashes;
float angle = atan(geometry.uv.y, geometry.uv.x);
bool isInGap = fract(angle/anglePerUnit) > dashArray.x / (dashArray.x + dashArray.y);
if (isInGap) discard; |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Can I create a scatterplot element with an dasharray outline, similar to the feature compatible with PathLayer? Here's a circle of the idea in Google Slides.
I found a
PathStyleExtension
that provides a getDashArray prop, but I'm unsure how to apply that to a scatter plot stroke since it isn't a PathLayer.Beta Was this translation helpful? Give feedback.
All reactions