opacity property

Stroke.opacity property

Defines the amount of transparency of a stroke. Valid range is from 0 to 1.

@property
def opacity(self) -> float:
    ...

@opacity.setter
def opacity(self, value: float):
    ...

Remarks

The default value is 1.

See Also