diff --git a/ChangeLog b/ChangeLog index 2d27c4dfa..fc599a1aa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2005-04-14 Carl Worth + + * test/gradient-alpha-ref.png: + * test/gradient-alpha.c: (draw): Make gradient change color in + addition to just changing alpha in order to highlight distinction + between interpolating in premultiplied vs. non-premultiplied + space. + 2005-04-14 Carl Worth * test/Makefile.am: Improve instructions for when to add a test to diff --git a/test/gradient-alpha-ref.png b/test/gradient-alpha-ref.png index fd6964961..e75f91105 100644 Binary files a/test/gradient-alpha-ref.png and b/test/gradient-alpha-ref.png differ 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);