Why isn't there a Canvas/SVG API for "take this arbitrary number of points and draw a curved polygon with them"? I guess because there are a lot of possible ways to interpret it? I'd take an imperfect/inflexible solution over none though!
-
-
Replying to @JoshWComeau
no definitive way I'm aware of, but the guy who made the Inconsolata typeface invented the best method that I've seen for this called Spiro: http://levien.com/spiro/ You can see the spiro points on the left and the resulting bezier curves on the right.pic.twitter.com/MAUc5gJ0xC
2 replies 1 retweet 10 likes -
Replying to @anonlebron @JoshWComeau
I'm not actually sure if my description of that Spiro figure is accurate.
@raphlinus can verify!1 reply 0 retweets 1 like
Replying to @anonlebron @JoshWComeau
Yup, fine description! I actually talked with the SVG spec folks, but it didn't go anywhere. Sadly, Spiro work is on hold for me at the moment.
11:37 AM - 6 Mar 2018
0 replies
0 retweets
2 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.