Commit dc32b352 authored by Ell's avatar Ell

color-overlay: fix output for semi-transparent color parameters

Premultiply the color-parameter components by the alpha before
processing.  Got lost during space invasion.
parent c1c3541c
......@@ -68,9 +68,13 @@ process (GeglOperation *operation,
const Babl *format = gegl_operation_get_format (operation, "output");
gfloat color[4];
gfloat alpha_c;
gint i;
gegl_color_get_pixel (o->value, format, &color);
for (i = 0; i < 3; i++)
color[i] *= color[3];
alpha_c = 1.0f - color[3];
if (fabs (alpha_c) <= EPSILON)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment