---
title: opacity
framework: paperkit
role: symbol
role_heading: Instance Property
path: paperkit/shapemarkup/opacity
---

# opacity

The opacity of the shape.

## Declaration

```swift
var opacity: CGFloat { get set }
```

## Discussion

Discussion Ranges from 0.0 (fully transparent) to 1.0 (fully opaque). Defaults to 1.0.

## See Also

### Configuring fill and stroke

- [fillColor](paperkit/shapemarkup/fillcolor.md)
- [strokeColor](paperkit/shapemarkup/strokecolor.md)
- [lineWidth](paperkit/shapemarkup/linewidth.md)
