Squircles
40 points by raphlinus 14 hours ago | 14 comments
fasterik 44 minutes ago
For those who are confused by the plot like I was, the horizontal axis is arc length, and the vertical axis is curvature.
replyterhechte 53 minutes ago
PaintCode! Here's a name I haven't heard in a long time. I had a license for this and one of my Mac apps (InstaDesk, later, PhotoDesk) used it a lot for all kinds of UI elements.
replyxg15 2 hours ago
Can someone explain the difference to me between a rounded rectangle and a squircle?
replyYuechenLi 2 minutes ago
A regular rounded rectangle is G1 continuous while a squircle (superellipse) is G2 continuous, which means that it is not only continuous on position and tangent for its outline, but the curvature rate of change for the outline is also continuous, so it's smoother and doesn't have hard difference between "line" and "rounded corner" on the shape.
replylayer8 57 minutes ago
The sides of a squircle never become completely straight, they are curved at every point.
replyOne consequence of that is that they scale more nicely for nesting: https://thatsmaths.com/wp-content/uploads/2016/07/squircles-... (right half of the image)
alanbernstein 7 minutes ago
On a rounded rectangle, the shape of the corner is continuous, but the curvature is not - it jumps from 0 to R. Rounded rectangles look fine, but if you're attuned to it, this subtle discontinuity can look just a little bit off.
replyA squircle is one (actually several variations) approach to making the curvature continuous.
I would say it's still a subjective aesthetic difference, but you can use math jargon to explain why you like one better than the other.
flowerlad 2 hours ago
A standard rounded rectangle has quarter-circle corners. A squircle starts curving earlier and more gently, with a gradual transition from its flatter sides into its corners.
replyPersonally, I prefer regular old round rectangles. Squircles are ugly.
ex1fm3ta 18 minutes ago
The new Apple product HomeView is a Squircle https://www.apple.com/ca/shop/buy-home/apple-homeview/apple-...
reply