color_set_alpha


Description:


[ Version ( since = "3.0" ) ]
public void color_set_alpha (Color color, double alpha)

Update the alpha channel, and any other component if necessary (e.

g. in case of premultiplied channels), without changing the format of color.

If color has no alpha component, this function is a no-op.

Parameters:

color

a [class@Gegl.Color]

alpha

new value for the alpha channel.


Namespace: Gimp
Package: gimp-3.0