# `GSEncodeColor`

*Function*

## Declaration

```swift
func GSEncodeColor(_ color: NSColor!, _ data: CFMutableData!, _ format: GSFormatVersion)
```

```objc
void GSEncodeColor(NSColor *color, CFMutableDataRef data, GSFormatVersion format);
```

```python
GSEncodeColor(color: NSColor, data: CFMutableDataRef, format: GSFormatVersion)
```

## See Also

- [`nullTerminatedASCIIDataWithString`](/Core/GlyphsCore/nullTerminatedASCIIDataWithString)
- [`nullTerminatedASCIIDataWithPropertyList`](/Core/GlyphsCore/nullTerminatedASCIIDataWithPropertyList)
- [`dataWithPropertyList`](/Core/GlyphsCore/dataWithPropertyList)
- [`stringWithPropertyList`](/Core/GlyphsCore/stringWithPropertyList)
- [`stringWithPropertyListNoEscape`](/Core/GlyphsCore/stringWithPropertyListNoEscape)
- [`writePropertyListToFile`](/Core/GlyphsCore/writePropertyListToFile)
- [`writePropertyListToFileNoEscape`](/Core/GlyphsCore/writePropertyListToFileNoEscape)
- [`GSEncodeArray`](/Core/GlyphsCore/GSEncodeArray)
- [`GSEncodeString`](/Core/GlyphsCore/GSEncodeString)
- [`GSEncodePoint`](/Core/GlyphsCore/GSEncodePoint)
- [`GSEncodeFloat`](/Core/GlyphsCore/GSEncodeFloat)
- [`GSFlattenDictionary`](/Core/GlyphsCore/GSFlattenDictionary)
- [`GSFlattenArray`](/Core/GlyphsCore/GSFlattenArray)

