# `GSShape.opacity`

*Instance Property*

The alpha applied to the complete rendered shape.

## Declaration

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

```objc
@property (nonatomic, assign) CGFloat opacity;
```

```python
opacity() -> float
setOpacity_(opacity: float)
```

## Discussion

Values range from `0` for fully transparent to `1` for fully opaque. Values outside this range are clamped. The default is `1`.

> **See Also**
> [`GSShapeKey.GSShapeKeyOpacity`](/Core/GlyphsCore/GSShapeKey/GSShapeKeyOpacity)

## See Also

### Compositing

- [`GSShape.hidden`](/Core/GlyphsCore/GSShape/hidden) — Whether the shape is excluded from drawing and generated outlines.
- [`GSShape.compositingOperation`](/Core/GlyphsCore/GSShape/compositingOperation) — How the rendered shape is combined with the content behind it.
- [`GSShape.outerShadow`](/Core/GlyphsCore/GSShape/outerShadow) — The shadow cast by the shape.
- [`GSShape.innerShadow`](/Core/GlyphsCore/GSShape/innerShadow) — The shadow drawn inside the shape.

