Skip to content

Document whether colors are premultiplied

Matthias Clasen requested to merge matthiasc/cairo:document-premul into master

For the various APIs that take or return RGBA colors, make it explicit that they are unpremultiplied.

This is following up on an email from Carl Worth in 2006, where he said:

Admittedly, there is a sentence or two missing from the documentation
to indicate that set_source_rgba and add_color_stop_rgba expect
non-premultiplied color values.

https://lists.freedesktop.org/archives/cairo/2006-June/007203.html

Merge request reports