
## Stroke.opacity property

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


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

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

```

### Remarks

The default value is 1.




### See Also

* module [aspose.words.drawing](../../)
* class [Stroke](../)

