summaryrefslogtreecommitdiff
path: root/src/cairo.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2022-12-24 07:22:39 -0500
committerMatthias Clasen <mclasen@redhat.com>2022-12-24 07:22:39 -0500
commit1df5969ef67fe305f6764446e39dd7d62891c8fc (patch)
tree7b5bb36446d90a0df8fa7f1aed4728f3e235fb5d /src/cairo.c
parent12cd2bcbb260f4ed64a72b64bd2fdd593f683bbc (diff)
downloadcairo-1df5969ef67fe305f6764446e39dd7d62891c8fc.tar.gz
Document whether colors are premultiplied
For the various APIs that take or return RGBA colors, make it explicit that they are unpremultiplied.
Diffstat (limited to 'src/cairo.c')
-rw-r--r--src/cairo.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cairo.c b/src/cairo.c
index f55429405..e9c4bb9a8 100644
--- a/src/cairo.c
+++ b/src/cairo.c
@@ -918,6 +918,8 @@ slim_hidden_def (cairo_set_source_rgb);
* range 0 to 1. If the values passed in are outside that range, they
* will be clamped.
*
+ * Note that the color and alpha values are not premultiplied.
+ *
* The default source pattern is opaque black, (that is, it is
* equivalent to cairo_set_source_rgba(cr, 0.0, 0.0, 0.0, 1.0)).
*