An Interest In:
Web News this Week
- April 30, 2024
- April 29, 2024
- April 28, 2024
- April 27, 2024
- April 26, 2024
- April 25, 2024
- April 24, 2024
February 14, 2017 02:29 am GMT
Original Link: http://codepen.io/AmeliaBR/details/KaJaWK/
SVG Squircle
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 …
SVG Squircle is a post from CSS-Tricks
Original Link: http://codepen.io/AmeliaBR/details/KaJaWK/
Share this article:
Tweet
View Full Article