Squircles: the shape between a square and a circle, and where it is used
The page on linebender.org describes squircles, shapes between a square and a circle[1]. There is no single mathematical definition, so several curves fit the description. The best known is the superellipse[2], where the exponent n sets how close the shape is to a circle (at n=2) or to a square (as n grows).
Apple changed its iOS 7 icon shape to a squircle in 2013. An early analysis called it a superellipse with exponent 5, but Bézier[3] curve data showed it has a flat side, so the page does not treat it as an exact superellipse. Figma published an analysis of the Apple shape and its own approximation, which the page calls influential. The CSS box decorations spec now includes the corner-shape property, which sets real superellipse corners.
The page says that for visual smoothness a shape should have G2 continuity[4]. Among the variants it discusses, only the clothoid squircle and superellipses with n above 2 have this property. A superellipse with exponent 3 and a flat side matches the Apple shape closely, and the page gives CSS for it using superellipse(1.585).
Read the original linebender.orgDiscussion
Discussion
Commenters are divided: some like squircles, while others say they dislike squircle icons and prefer rounded rectangles. One commenter notes that squircle corner shapes work in Chrome as a CSS feature but not in Firefox or Safari. Others point to a draft pull request for squircles in GTK, the sphube shape described in an arXiv paper, and a book on squigonometry.
Links from the post and discussion
- Draft merge request adding squircles to GTK gitlab.gnome.org
- arXiv paper on the sphube, recommended in comments arxiv.org
- Springer book on squigonometry, recommended in comments link.springer.com
- Wikipedia article on squigonometry en.wikipedia.org
Sources
-
Linebender
Squircles
-
KRGeekNews KO
Squircles - 정사각형과 원 사이의 곡선, 구현 방식과 연속성 비교



