[cairo] API Shakeup: cairo_set_rgb_color

Keith Packard keithp at keithp.com
Wed Feb 16 03:09:25 PST 2005


Around 17 o'clock on Feb 15, Bill Spitzak wrote:

> Actually, since cairo_set_source_rgba takes double as the type of 
> parameter, you can do this with the other interface as well by setting 
> r,g,or b to a value greater than 1.0.

If 'a' is zero, you cannot usefully set r, g or b to anything other than 
zero.  The extra API really is required to get the desired functionality.

-keith


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20050216/4a96ff7e/attachment.pgp


More information about the cairo mailing list