[cairo] Solid color pattern constructors
keithp at keithp.com
Wed Jun 29 22:37:48 PDT 2005
On Thu, 2005-06-30 at 03:28 +0200, Øyvind Kolås wrote:
> On 6/28/05, Kristian Høgsberg <krh at bitplanet.net> wrote:
> > + * Create a new cairo_pattern_t corresponding to a solid, opaque
> > + * color. The color components are floating point numbers in the
> > + * range 0 to 1. If the values passed in are outside that range, they
> > + * will be clamped.
> Maybe s/will/might/ - documenting that cairo does clamp values outside
> the 0 to 1 range, might make transparently using cairo on arbitary
> data in a floating point variation of pixman harder in the future.
Good point; we've mentioned several times that using sRGB is really only
defensible if we permit components outside the range 0..1. Just remove
the clamping wording from the spec.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.freedesktop.org/archives/cairo/attachments/20050629/6bbd4a5c/attachment.pgp
More information about the cairo