[cairo] shader program in cairo graphics?
Henry (Yu) Song - SISA
henry.song at samsung.com
Tue May 28 07:35:36 PDT 2013
Hi, Jeong-joon
Doe that work for you?
cairo_set_source_rgba (cr, r, g, b, a);
/* fill a polygon */
cairo_move_to (cr, x, y);
cairo_line_to (cr, x1, y1);
......
cairo_close_path (cr);
cairo_fill (cr):
Henry
________________________________________
From: cairo-bounces+hsong=sisa.samsung.com at cairographics.org [cairo-bounces+hsong=sisa.samsung.com at cairographics.org] on behalf of Jeong-Joon Yoo [jeongjoon.yoo at gmail.com]
Sent: Monday, May 27, 2013 11:16 PM
To: cairo at cairographics.org
Subject: [cairo] shader program in cairo graphics?
Hi all,
I have a question whether there is, in cairo graphics, a function like a shader program shown in 3D graphics.
I hope to fill a polygon with some colors, and I hope to define the color as a function depending on the (x, y) position.
Is there any cairo API or data structure related with this functionality? or any examples? Any comment will be appreciated.
Thank you in advance.
Sincerely yours.
- jjyoo
More information about the cairo
mailing list