[cairo] Conical Gradient

Carlos López González genetita at gmail.com
Mon Jan 28 23:18:45 PST 2013


Here is one actual code that creates conical gradients in cairo:

https://github.com/synfig/synfig/blob/genete_new_cairo_core_2/synfig-core/src/modules/mod_gradient/conicalgradient.cpp#L360

You have just to adapt it to your 'Gradient' definition

See Synfig's Gradient definition here for reference:
https://github.com/synfig/synfig/blob/genete_new_cairo_core_2/synfig-core/src/synfig/gradient.h

I hope it helps.


2013/1/29 Bobby Salazar <bobby8934 at gmail.com>

> Is it possible to create a conical gradient using Cairo? I would like
> to be able to produce an effect similar to this picture:
>
>
> http://2.bp.blogspot.com/-b1G6OHdoCIA/TcOh3HYCyjI/AAAAAAAAAbg/JYi-vFIBZDs/s1600/SingleConicalGradient.png
>
> Any help is appreciated!
> --
> cairo mailing list
> cairo at cairographics.org
> http://lists.cairographics.org/mailman/listinfo/cairo
>



-- 
Carlos
http://synfig.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo/attachments/20130129/44091aec/attachment.html>


More information about the cairo mailing list