Gimp.Channel.prototype.set_opacity

function set_opacity(opacity: Number(gdouble)): Boolean {
    // Gjs wrapper for gimp_channel_set_opacity()
}
  

Set the opacity of the specified channel.

This procedure sets the specified channel's opacity.

opacity

The new channel opacity.

Returns

TRUE on success.