Squircles
56 points by pushcx
56 points by pushcx
...am I weird for preferring rounded rectangles?
I’ve been seeing screenshots of Apple software recently, and feeling uncomfortable about them on rectangles. On app icons they looked fine (though I still think older Android with no standard shape was obviously vastly superior), but on things like notification backgrounds… there’s just something off about them.
There are definitely places where rounded rectangles can be improved by a little squircling, but this stuff is just uncomfortable.
(It doesn’t help that I hate the interaction between corner-shape and border-radius in CSS: you pretty much have to double the radius if you use corner-shape: squircle, so all of a sudden you want nonsense like border-radius: 0.5em; @supports (corner-shape: squircle) { corner-shape: squircle; border-radius: 1em; } for compatibility without stupidly large radii on non-supporting browsers.)
So superellipses are just the unit circles for various p-norms?
Not quite, as in the general case superellipses interpolate between ellipses and rectangles, not just circles and squares. In the special case of the semiaxes being equal, which the article focuses on, then yes, they're the unit circles of various p-norms.