Open ekuleshov opened 1 year ago
That's interesting. Though I think cubic splines might have more control (without having looked at that article too close). I started writing a Path class with lines and cubic splines implemented for outline drawing so far, but then work started up again and I have pick away at it a bit more slowly now.
Right. At the end of the linked article and in SO answers there is a variant based on Bezier curve too
Here is an interesting algorithm for drawing polygons with rounded corners that can be implemented without Bezier curves.
https://gorillasun.de/blog/an-algorithm-for-polygons-with-rounded-corners https://stackoverflow.com/a/44856925