---
title: strokeTexture
framework: spritekit
role: symbol
role_heading: Instance Property
path: spritekit/skshapenode/stroketexture
---

# strokeTexture

The texture used to stroke the shape.

## Declaration

```swift
var strokeTexture: SKTexture? { get set }
```

## Discussion

Discussion The default value is nil. If a stroke texture is specified, the strokeColor property is ignored and the stroked portion of the shape node is rendered using the texture instead.

## See Also

### Stroking a Shape

- [lineWidth](spritekit/skshapenode/linewidth.md)
- [strokeColor](spritekit/skshapenode/strokecolor.md)
- [glowWidth](spritekit/skshapenode/glowwidth.md)
- [lineCap](spritekit/skshapenode/linecap.md)
- [lineJoin](spritekit/skshapenode/linejoin.md)
- [miterLimit](spritekit/skshapenode/miterlimit.md)
- [isAntialiased](spritekit/skshapenode/isantialiased.md)
