set_layer_color#

Layer.set_layer_color(r: int, g: int, b: int) bool#

Update the color of the layer.

Parameters:
rint

Red color value.

gint

Green color value.

bint

Blue color value.

Returns:
bool

True when successful, False when failed.

References

>>> oEditor.ChangeLayer

Examples

>>> from ansys.aedt.core.modules.layer_stackup import Layer
>>> obj = Layer()
>>> obj.set_layer_color(r=1, g=1, b=[0, 1, 0])