mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-07 00:56:14 +00:00
This function generates a new path, which can be filled to rasterize a stroke of the original path (at whatever thickness you like). It does this by convolving a circular pen with the path, so right now only supports round line caps. Since filled paths now have good antialiasing, doing this results in good stroked paths for "free". It also (for free) fixes stroked lines with an opacity < 1, nice line joins, and is possible to fill with a paint style (e.g. a gradient or an image). Algorithm from: https://keithp.com/~keithp/talks/cairo2003.pdf
17 KiB
17 KiB