---
title: strokeColor
framework: spritekit
role: symbol
role_heading: Instance Property
path: spritekit/skshapenode/strokecolor
---

# strokeColor

The color used to stroke the shape.

## Declaration

```swift
var strokeColor: UIColor { get set }
```

```swift
var strokeColor: NSColor { get set }
```

## Mentioned in

Getting Started with Shape Nodes

## Discussion

Discussion The default stroke color is [SKColor whiteColor]. If you do not want to stroke the shape, use [SKColor clearColor].

## See Also

### Stroking a Shape

- [lineWidth](spritekit/skshapenode/linewidth.md)
- [strokeTexture](spritekit/skshapenode/stroketexture.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)
