<div dir="ltr">On Thu, Mar 12, 2015 at 9:40 AM, Lawrence D'Oliveiro <span dir="ltr"><<a href="mailto:ldo@geek-central.gen.nz" target="_blank">ldo@geek-central.gen.nz</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I was pleased to discover that radial gradients with EXTEND_REPEAT do<br>
their repeating outwards from the pattern centre, not actually by<br>
tiling at all. This is a useful effect, but it is not made clear<br>
anywhere in the documentation that I can see<br>
<<a href="http://cairographics.org/manual/cairo-cairo-pattern-t.html" target="_blank">http://cairographics.org/manual/cairo-cairo-pattern-t.html</a>>.<br></blockquote><div><br></div><div>Gradients (as opposed to surface-based patterns) lack of a natural notion of tile.<br></div><div>Linear gradients are quite simple and their current description might already be sufficient to provide the intuition of their behavior.<br>Mesh gradients are quite complex, hence they have extensive documentation (and even reference the PDF specification for a more complete description).<br></div><div>We might want to extend the documentation for linear and radial gradients by mentioning the relevant parametrization (so that in cairo_extend_t we can explicitly say the mathematical meaning of each setting).<br></div><div>Alternatively, we might mention specifically in create_linear/create_radial what happens for each different extend setting.<br></div><div><br>Are these effective ways to explain the gradients?<br></div><div>Which one should be preferred?<br></div><div><br></div><div>Andrea<br></div></div></div></div>