Download Canvas API-Generated Images Using toBlob

1 · · March 16, 2020, midnight
For Purple11, a side project of mine built with Gatsby, I created a simple cloud texture generator that uses SVG filters and the Canvas API under the hood. The SVG filter part allowed me to easily create the cloud texture effect itself, thanks in great part to the feTurbulence filter, but I’ll keep the fascinating topic of SVG filters for another article. In order to let a user download the generated texture to their machine as a Jpeg file, the inline SVG (with filters applied) first needs to be...