[cairo] stretching a shape along a path
ldo at geek-central.gen.nz
Fri Jan 15 13:10:40 PST 2016
On Fri, 15 Jan 2016 11:40:12 -0800, Brian Merchant wrote:
> I am wondering how I can stretch a shape along a path. Take for
> example this picture: http://i.imgur.com/5TxrZeI.png
> In the example, a triangle is "stretched" along a Bezier path.
> How would I reproduce such an effect using Cairo?
Perhaps flatten the path, subdivide the resulting segments into smaller
segments, then remap the points according to the deforming curve.
More information about the cairo