Re: Conical Gradient

Carlos López González <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <CAF52pzJrkcFbwejRD4rLBC7x3thEsbEwnPuFjWiiLE0qCdbOaQ@mail.gmail.com>
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 <[email protected]>

> 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
> [email protected]
> http://lists.cairographics.org/mailman/listinfo/cairo
>



-- 
Carlos
http://synfig.org

-- 
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.