3 ms·
Nice, fancy approach. The stupid simple approach I’ve used is to sample each path with path.getPointAtLength() at an appropriate resolution, and use that to app
by tobr 2y ago
Nice, fancy approach. The stupid simple approach I’ve used is to sample each path with path.getPointAtLength() at an appropriate resolution, and use that to approximate the paths with many short straight lines segments which are trivial to interpolate between.
- jahewson 2y agoMicrosoft’s WPF does this and then applies a bezier recovery algorithm to (approximately) get the curves back.