cetz icon indicating copy to clipboard operation
cetz copied to clipboard

[Feature Request] Setting start- and endpoints for t in the Bezier function

Open Mearleo opened this issue 1 year ago • 2 comments

Currently, you can clamp the length with marks but setting the range of t instead of 0 <= t <= 1 to start <= t <= end would be great for a few applications.

This is the normal curve: image

And this is the range 0 <= t <= 0.8: image

Mearleo avatar Jul 13 '24 00:07 Mearleo

I think it would be best to continue using ratios for distance relative to the path length (0% <= t <= 80%) and numbers for absolute distance.

fenjalien avatar Jul 13 '24 13:07 fenjalien

How does setting t help? The t parameter is not the relative length/distance of the curve, and I am not sure if it is useful to be able to clamp it. Clamping the start/end distance (relative + absolute) could be useful, yes.

johannes-wolf avatar Jul 13 '24 15:07 johannes-wolf

Not planned. Instead we will add generic path shortening capabilities with #790.

johannes-wolf avatar Jun 07 '25 21:06 johannes-wolf