[cairo] Circular Ring Gradient
Lawrence D'Oliveiro
ldo at geek-central.gen.nz
Thu May 11 00:02:28 UTC 2017
On Thu, 11 May 2017 07:20:47 +0930, Adrian Johnson wrote:
> Mesh patches can have Bézier curved sides. A circle can be
> approximated with 8 Bézier curves. A ring can be created with 8
> patches. See attached example and output.
Couldn’t resist--attached Python version using Qahirah, 78 lines versus
128 lines for the C version. ;)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ring_gradient
Type: application/octet-stream
Size: 2269 bytes
Desc: not available
URL: <https://lists.cairographics.org/archives/cairo/attachments/20170511/06f6a5a3/attachment.obj>
More information about the cairo
mailing list