Squircles and Sparkles
You know what's easy to find in app icons these days? Squircles and "AI sparkle" stars.
How do you get the squircle? Well, we know the formula for the unit circle is
But we can generalize to any positive real power of , with a radius of :
Here's what you'll get when you let :
As goes higher, the shape becomes a closer approximation of a rectangle. (Interestingly, if you let you get an actual rectangle, but tilted 45 degrees like a diamond.)
It's when is fractional that you get the sparkle. Here's what you'll get when you let :
With the help of Claude Code, a made an Icon Builder Web App. It can export SVGs, a favicon.ico, and an iOS-ready PNG for the homescreen.
You can find the code on GitHub.
Macneil Shonle’s Blog