Gimp.Layer.group_new

function group_new(image: Gimp.Image): Gimp.Layer {
    // Gjs wrapper for gimp_layer_group_new()
}
  

Create a new layer group.

This procedure creates a new layer group. Attributes such as layer mode and opacity should be set with explicit procedure calls. Add the new layer group (which is a kind of layer) with the Gimp.Image.prototype.insert_layer command. Other procedures useful with layer groups: Gimp.Image.prototype.reorder_item, Gimp.Item.prototype.get_parent, Gimp.Item.get_children, Gimp.Item.prototype.is_group.

Since 2.8

image

The image to which to add the layer group.

Returns

The newly created layer group.