[cairo] clarification on some misc pattern documents?

jimmy frasche soapboxcicero at gmail.com
Sat May 10 22:07:19 PDT 2014


- cairo_pattern_get_color_stop_rgba:

"Gets the color and offset information at the given index for a
gradient pattern. Values of index are 0 to 1 less than the number
returned by cairo_pattern_get_color_stop_count()."

Is this just saying that the colors stops range from 0 to n-1 where n
is the result of cairo_pattenr_get_color_stop_count?

- cairo_pattern_create_mesh

After the Gouraud-shaded triangle example, when talking about
overlapping patches, the docs begin talking about u and v coordinates
without defining them.

Skimming the referenced ISO spec for PDFs it appears they refer to the
axes of the square being deformed, but I wanted to make sure. If so
perhaps that could be made clearer.


More information about the cairo mailing list