[cairo] a quadratic Bézier curve

Roman Beslik beroal at ukr.net
Tue Apr 13 09:57:24 PDT 2010


Thank you all. Maybe this should be in FAQ because I found the same question
http://lists.cairographics.org/archives/cairo/2009-October/018349.html

On 13.04.10 19:35, Simon Budig wrote:
>    cairo_curve_to (cr,
>                    2.0 / 3.0 * x1 + 1.0 / 3.0 * x0,
>                    2.0 / 3.0 * y1 + 1.0 / 3.0 * y0,
>                    2.0 / 3.0 * x1 + 1.0 / 3.0 * x2,
>                    2.0 / 3.0 * y1 + 1.0 / 3.0 * y2,
>                    x2, y2); /* !!! */
>    

-- 
Best regards,
   Roman Beslik.



More information about the cairo mailing list