3 ms·
It's one of those curves that's much easier to define implicitly than to explicitly find the border. If you don't mind testing each pixel to see if it should be
by roywiggins 4y ago
It's one of those curves that's much easier to define implicitly than to explicitly find the border. If you don't mind testing each pixel to see if it should be "in" or "out" then you can draw a picture of it easily. But if you want an explicit function for the boundary or avoid calculating much of the pixels, you'll need something like marching squares or more math to find it.
The SVG solution here is nice in that increasing the resolution doesn't require you to do any more computation to determine where the border should be, and the border will always be exact and smooth; you even get antialiasing "for free".
- everyone 4y agoYeah totally, but if u have a pixel shader then u are running some code for every pixel anyway. I think this highlights how different code that's to run on CPU can be from code that's to run on GPU.