---
title: set()
framework: appkit
role: symbol
role_heading: Instance Method
path: appkit/nscolor/set()
---

# set()

Sets the color of subsequent drawing to the color that the color object represents.

## Declaration

```swift
func set()
```

## Discussion

Discussion This method should be implemented in subclasses.

## See Also

### Drawing with colors

- [drawSwatch(in:)](appkit/nscolor/drawswatch(in:).md)
- [setFill()](appkit/nscolor/setfill().md)
- [setStroke()](appkit/nscolor/setstroke().md)
