---
title: threshold
framework: pencilkit
role: symbol
role_heading: Instance Property
path: pencilkit/pkstrokepoint-swift.struct/threshold
---

# threshold

The alpha threshold for clipping the stroke rendering for supported inks.

## Declaration

```swift
var threshold: CGFloat { get }
```

## Discussion

Discussion Only pixels with an alpha greater than the threshold are drawn. A threshold of 0 has no effect on rendering; a threshold of 1 draws nothing. Thresholds apply only to some inks, such as .reed.

## See Also

### Getting the point’s drawing data

- [size](pencilkit/pkstrokepoint-swift.struct/size.md)
- [opacity](pencilkit/pkstrokepoint-swift.struct/opacity.md)
- [secondaryScale](pencilkit/pkstrokepoint-swift.struct/secondaryscale.md)
- [lateralJitter](pencilkit/pkstrokepoint-swift.struct/lateraljitter.md)
