Home > Designing, Others > SVG Squircle

SVG Squircle

February 14th, 2017 Leave a comment Go to comments

Amelia Bellamy-Royds:

I wondered if I could come up with an easy formula to create a “squircle” type curve with SVG bezier curves. It wouldn’t be the exact shape, but it could be close. The idea:

The “end points” of the curve segments are the mid-points of each side of the rectangle, where everything should be perfectly straight. The control points then stretch out along the edges until the curvature at the corners is about right.

Rogie took a crack at it with CSS a few years ago, as well.

Direct Link to ArticlePermalink


SVG Squircle is a post from CSS-Tricks

Categories: Designing, Others Tags:
  1. No comments yet.
  1. No trackbacks yet.
You must be logged in to post a comment.