Skip to content

gi-nx


gi-nx / changeLayerOpacity

ts
function changeLayerOpacity(layerId: string, opacity: number): void;

Change the opacity of a layer. layerId is the id of the layer, or the layer name. Opacity is a number between 0 and 1.

Parameters

ParameterType
layerIdstring
opacitynumber

Returns

void