Simple non feathered circles is complete. Cairo is 29% faster with circles.
Cheers!

2012/8/7 Carlos López González <genet...@gmail.com>

> Ok, so now working on Circle layer.
> Initially the code will be similar to the rectangle but I was scratching
> my head on how to emulate the feather. Then I discovered that a circle with
> zero radius will render a feather if requested, what surprised to me
> initially because I guessed that the feather was some kind of blur based on
> the rendered circle but that's not that way.
>
> That discovery helped me to figure out one way to draw the feather. The
> feather can be perfectly emulated in Synfig itself by placing a Radial
> gradient with the proper color values and radiuses. So in the case of
> feathered circles I'll produce the render in Cairo y creating the proper
> radial gradient.
> Since the circle has different falloffs of the feather (Linear, Cosine,
> Square, etc.) and Cairo's radial gradient only supports linear falloff
> between control points of the gradient it will be needed to evaluate the
> falloff function is several points (it will depend on the quality) to match
> the same render result than the Software render.
>
> I'm happy because it will be a solution for the feathered circle.
>
> Please see attached image as example for what I'm talking about.
> http://imagebin.org/223654
> The left circle is rendered using a Circle layer and the right one is
> rendered using a Radial Gradient layer. Everything using Software render.
> I expect to have a Circle layer fully rendered using Cairo API in a few
> days.
>
> Cheers!
>
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Synfig-devl mailing list
Synfig-devl@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synfig-devl

Reply via email to