diff options
author | Carl Worth <cworth@cworth.org> | 2005-04-14 14:02:03 +0000 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2005-04-14 14:02:03 +0000 |
commit | c0d9c13d0403673a7fe994664a4f616c71301474 (patch) | |
tree | 388effc682ad5000bb29c6b379369c35896e935f /test/gradient-alpha.c | |
parent | 65209fc39cb0257b2e55e7dfa509be5a5ef65f05 (diff) | |
download | cairo-c0d9c13d0403673a7fe994664a4f616c71301474.tar.gz |
Make gradient change color in addition to just changing alpha in order to highlight distinction between interpolating in premultiplied vs. non-premultiplied space.
Diffstat (limited to 'test/gradient-alpha.c')
-rw-r--r-- | test/gradient-alpha.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/gradient-alpha.c b/test/gradient-alpha.c index 4d97e3ad1..869d23d96 100644 --- a/test/gradient-alpha.c +++ b/test/gradient-alpha.c @@ -36,14 +36,14 @@ draw (cairo_t *cr, int width, int height) { cairo_pattern_t *gradient; - gradient = cairo_pattern_create_linear (0, 0, + gradient = cairo_pattern_create_linear (0, -height, 0, height); cairo_pattern_add_color_stop (gradient, 0.0, - .2, .4, .6, + 1.0, 0.0, 0.0, 1.0); cairo_pattern_add_color_stop (gradient, 1.0, - .2, .4, .6, - 0.0); + 0.0, 0.0, 1.0, + 0.5); cairo_set_pattern (cr, gradient); |