Squircles linebender.org · 15 points · 5 comments · HN thread TL;DR A wiki page ...

@best

Squircles linebender.org · 15 points · 5 comments · HN thread

TL;DR A wiki page from the Linebender project surveys squircles, shapes between a square and a circle, covering the superellipse, Apple's iOS 7 icon shape, Figma's and clothoid approximations, and the CSS corner-shape property. It compares their curvature continuity and the range of shapes each can produce, with a parametrized 'gauge' measure for comparison.

  • A squircle has no single definition; the superellipse |x|^n + |y|^n = 1 is the best-known form, with n=2 a circle and n approaching infinity a square.
  • Gauge, the quadrant midpoint coordinate x = 0.5^(1/n), is proposed as the main parameter for comparing squircle variants.
  • Apple's iOS 7 icon shape is a flat-sided squircle with a gauge of 0.809, not the exponent-5 superellipse once assumed; a superellipse of exponent 3 matches it more closely.
  • Figma's approximation is limited to gauges between 0.707 and 0.854 without a flat side and has curvature discontinuities at the arc joins, while clothoid squircles are G2 continuous.
  • Squircle corners are now standardized in CSS as the corner-shape property, with Chromium using a closed-form Bezier approximation; the page gives an example with superellipse(1.585).

Discussion The thread is very short, with only three comments. It starts with a basic question from xg15 asking how a squircle differs from a rounded rectangle, which gets a link to image search results and a short plain-language answer. The last comment is a complaint that the CSS squircle corner shape works only in Chromium and not in Firefox or Safari. The mood is curious and mildly critical.

  • Squircle means a corner radius that is not constant (some): wolttam explains that a rounded rectangle has fixed-radius corners, while a squircle is a shape whose corner curvature varies. The commenter labels this as their own interpretation.
  • Squircle corner shapes are missing from most browsers (a few): MitPitt notes that the squircle corner shape is available only in Chrome as a CSS feature, not in Firefox or Safari, and says they strongly dislike rounded corners in UI.

Links from the comments

#squircle #css #design #geometry #webDev