# `GSColorSpace`

*Class*

## Declaration

```swift
class GSColorSpace
```

```objc
@interface GSColorSpace : NSObject
```

```python
class GSColorSpace(NSObject)
```

## Topics

### Instance Properties

- [`GSColorSpace.CGColorSpace`](/Core/GlyphsCore/GSColorSpace/CGColorSpace)
- [`GSColorSpace.displayName`](/Core/GlyphsCore/GSColorSpace/displayName)
- [`GSColorSpace.grayscale`](/Core/GlyphsCore/GSColorSpace/grayscale) — Returns a grayscale color space closely matching the receiver.
- [`GSColorSpace.NSColorSpace`](/Core/GlyphsCore/GSColorSpace/NSColorSpace)
- [`GSColorSpace.tagName`](/Core/GlyphsCore/GSColorSpace/tagName) — A string which identifies the color space.

### Instance Methods

- [`GSColorSpace colorWithRed:green:blue:alpha:`](/Core/GlyphsCore/GSColorSpace/colorWithRed:green:blue:alpha:) — Returns an RGB color with the given components in the color space.
- [`GSColorSpace colorWithWhite:alpha:`](/Core/GlyphsCore/GSColorSpace/colorWithWhite:alpha:) — Returns a grayscale color with the given components in the color space.

### Type Properties

- [`GSColorSpace.appleGray`](/Core/GlyphsCore/GSColorSpace/appleGray) — Perceptual calibrated grayscale color space for Apple devices.
- [`GSColorSpace.appleRGB`](/Core/GlyphsCore/GSColorSpace/appleRGB) — Perceptual calibrated RGB color space for Apple devices.
- [`GSColorSpace.displayP3`](/Core/GlyphsCore/GSColorSpace/displayP3) — Perceptual Display P3 based on DCI-P3.
- [`GSColorSpace.gray`](/Core/GlyphsCore/GSColorSpace/gray) — Perceptual generic grayscale color space with γ = 2.2.
- [`GSColorSpace.sRGB`](/Core/GlyphsCore/GSColorSpace/sRGB) — Perceptual sRGB.
- [`GSColorSpace.sRGBLinear`](/Core/GlyphsCore/GSColorSpace/sRGBLinear) — Linear sRGB.

### Type Methods

- [`GSColorSpace defaultGrayscaleColorSpaceForFormatVersion:`](/Core/GlyphsCore/GSColorSpace/defaultGrayscaleColorSpaceForFormatVersion:)
- [`GSColorSpace defaultRGBColorSpaceForFormatVersion:`](/Core/GlyphsCore/GSColorSpace/defaultRGBColorSpaceForFormatVersion:)
- [`GSColorSpace colorSpaceWithTagName:`](/Core/GlyphsCore/GSColorSpace/colorSpaceWithTagName:) — Returns a color space matching the given tag name, if any.

## Relationships

### Inherits From

- `NSObject`

