[cairo] [Pixman] Gradients patches
ranma42 at gmail.com
Sat Oct 23 03:09:57 PDT 2010
On Tue, Oct 12, 2010 at 1:09 PM, Soeren Sandmann <sandmann at daimi.au.dk> wrote:
> It would be useful for someone to update the Render spec to say that
> the radials are PDF Type 3 Shadings, defined in section 126.96.36.199.4 of
> the PDF specification, and delete the stuff about the circles being
> contained in each other.
I'm pinging the ML about this again, because I would like to add
a couple of facts.
Cairo has been abusing Render radial gradients by requesting their
rasterization even when the "outer" circle did not contain the "inner"
circle. The specification explicitly disallows this, but the server
doesn't return an error and draws the gradient, instead.
The change suggested by Soeren seems to be very appropriate
to make specification and implementation more consistent.
Additionally the gradient definition did not change for the values
allowed by the specification, so extending the range of valid values
should be pretty safe.
More information about the cairo