# `writeColor`

*Function*

## Declaration

```swift
func writeColor(_ file: UnsafeMutablePointer<FILE>, _ key: UnsafePointer<CChar>, _ color: NSColor, _ format: GSFormatVersion) -> Bool
```

```objc
BOOL writeColor(FILE *file, const char *key, NSColor *color, GSFormatVersion format);
```

```python
writeColor(file: FILE, key: str, color: NSColor, format: GSFormatVersion) -> bool
```

## See Also

### Values and Collections

- [`writeKeyValueListBlock`](/Core/GlyphsCore/writeKeyValueListBlock)
- [`writePosition`](/Core/GlyphsCore/writePosition)
- [`writeTuple2`](/Core/GlyphsCore/writeTuple2)
- [`writeTuple2Buffer`](/Core/GlyphsCore/writeTuple2Buffer)
- [`writeTuple2Format1`](/Core/GlyphsCore/writeTuple2Format1)
- [`writeTransform`](/Core/GlyphsCore/writeTransform)
- [`writeTransformToBuffer`](/Core/GlyphsCore/writeTransformToBuffer)
- [`writeDateString`](/Core/GlyphsCore/writeDateString)
- [`writeElements`](/Core/GlyphsCore/writeElements)
- [`writeElementsLine`](/Core/GlyphsCore/writeElementsLine)
- [`endArray`](/Core/GlyphsCore/endArray)

