---
title: grainOffset
framework: pencilkit
role: symbol
role_heading: Instance Property
path: pencilkit/pkstroke-swift.struct/renderstate-swift.struct/grainoffset
---

# grainOffset

The pre-transform position of the grain texture for strokes with a backing grain texture such as crayon.

## Declaration

```swift
var grainOffset: CGPoint?
```

## Mentioned in

Controlling stroke rendering for animation and editing
