[cairo-bugs] [Bug 40918] Radial gradients misrendered if focus is exactly on the outer circle

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Sep 16 17:07:19 PDT 2011


https://bugs.freedesktop.org/show_bug.cgi?id=40918

--- Comment #9 from Krzysztof Kosiński <tweenk.pl at gmail.com> 2011-09-16 17:07:17 PDT ---
(In reply to comment #8)
> In this case you can simply paint the plane with solid color (the "outer
> color") and then draw the radial gradient. This should ensure that no part
> stays clear.

In general this is not possible. If any stop of the gradient is not fully
opaque, the result would be incorrect. Painting with the SOURCE operator might
fix this, but then every shape with a radial gradient would have to be rendered
to a separate group.

Isn't it possible to round the focus coordinates towards the center of the
outer circle rather than in some arbitrary direction? Maybe provide a new
extend mode which would paint the half-plane which is now left transparent with
the color of the outer circle?

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the cairo-bugs mailing list