# `GSDrawEnvironment resolveColor:`

*Instance Method*

Returns `nil` when the argument is `nil`; `GSPaletteColor.errorColor` when the given palette color cannot be resolved.

## Declaration

```swift
func resolve(_ color: NSColor?) -> NSColor?
```

```objc
- (NSColor *) resolveColor:(NSColor *) color;
```

```python
resolveColor_(color: NSColor) -> NSColor
```

