-
Notifications
You must be signed in to change notification settings - Fork 62
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
Metaballs? #341
Comments
The core abstractions definitely don't allow for per-pixel blending, but you're right that it could be added as a primitive with support from a particular backend like SVG. I certainly don't have the time or inclination to tackle this, but PRs are very welcome and I'm happy to provide guidance/pointers as needed. |
If you could point me in the direction of how to make a primitive, I can probably do the rest! |
Really it's as simple as defining a data type to represent the primitive, and then defining an |
I want to render some organic looking paint splatters. It seems like a good fit for metaballs, so I was wondering if such a thing is possible in diagrams. I'm not sure the core abstractions allow for per-pixel blending, but it seems like this could be implemented as an svg primitive.
The website http://blobs.webflow.io/ has a good tutorial on faking metaballs by exploiting the
blur
andcontrast
css filters. SVG doesn't have a built-incontrast
filter, but this stack overflow answer seems to implement it by hand: https://stackoverflow.com/questions/55323334/implementing-css-svg-contrast-filter-using-sharp-libvipsThe text was updated successfully, but these errors were encountered: