[cairo] Mesh Gradients again

Franz Schmid Franz.Schmid at altmuehlnet.de
Wed Mar 10 02:48:39 PST 2010


Hi all,

i just tested Adrian Johnsons mesh gradient branch[1], and it works
fairly well. See the attached images and sample code.

It would be really great, if this branch could be revised and
integrated into the next cairo-1.9.x snapshot.

Cairo would be the first library which brings mesh gradient rendering
to Linux. It would enable us (the Scribus Team) to integrate this cool
feature into our development branch.

Problems i noticed during testing:
- Rendering with alpha values != 1 isn't completly perfect, there are
  rendering issues along the borders of the patches.

- Clipping isn't correct at all, but this may due to the branch i'm using.

Greetings,

Franz Schmid
The Scribus Team

1) http://cgit.freedesktop.org/~ajohnson/cairo/log/?h=mesh
-------------- next part --------------
A non-text attachment was scrubbed...
Name: meshtest.c
Type: text/x-c++src
Size: 3804 bytes
Desc: not available
URL: <http://lists.cairographics.org/archives/cairo/attachments/20100310/3b3cf747/attachment-0003.cc>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: meshtest.png
Type: image/png
Size: 17757 bytes
Desc: not available
URL: <http://lists.cairographics.org/archives/cairo/attachments/20100310/3b3cf747/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: meshtestalpha1.c
Type: text/x-c++src
Size: 3818 bytes
Desc: not available
URL: <http://lists.cairographics.org/archives/cairo/attachments/20100310/3b3cf747/attachment-0004.cc>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: meshtestalpha1.png
Type: image/png
Size: 15948 bytes
Desc: not available
URL: <http://lists.cairographics.org/archives/cairo/attachments/20100310/3b3cf747/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: meshtestalpha2.c
Type: text/x-c++src
Size: 3906 bytes
Desc: not available
URL: <http://lists.cairographics.org/archives/cairo/attachments/20100310/3b3cf747/attachment-0005.cc>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: meshtestalpha2.png
Type: image/png
Size: 15948 bytes
Desc: not available
URL: <http://lists.cairographics.org/archives/cairo/attachments/20100310/3b3cf747/attachment-0005.png>


More information about the cairo mailing list