# GSLayer Color

*API Collection*

Colors used to draw a layer.

## Overview

Palette color layers select one color entry shared by all palettes. The palette index selects which palette supplies the color for display.

The layer color is distinct from the color label used to organize layers in the app.

## Topics

### Resolving Colors

- [`GSLayer layerColor:`](/Core/GlyphsCore/GSLayer/layerColor:) — The effective color used to represent the layer, or `nil` when no color is configured.
- [`GSLayer paletteColor:`](/Core/GlyphsCore/GSLayer/paletteColor:) — The layer’s palette color from the given palette, or `nil` when it cannot be resolved.
- [`GSLayer paletteInfo`](/Core/GlyphsCore/GSLayer/paletteInfo) — The effective color palettes for the layer, or `nil` when none are configured.

### Inspecting Colors

- [`GSLayer.hasColorsInComponents`](/Core/GlyphsCore/GSLayer/hasColorsInComponents) — Whether the first shape is a component whose glyph uses a color-layer format.
- [`GSLayer descriptionForAttributeColor`](/Core/GlyphsCore/GSLayer/descriptionForAttributeColor) — A stable description of the color-layer format, or an empty string for a non-color layer.
- [`GSLayer localizedDescriptionForAttributeColor`](/Core/GlyphsCore/GSLayer/localizedDescriptionForAttributeColor) — A localized description of the color-layer format, or an empty string for a non-color layer.

### Transforming Colors

- [`GSLayer transformColorsUsingBlock:`](/Core/GlyphsCore/GSLayer/transformColorsUsingBlock:) — Passes each color used directly by the shapes of the layer to a block and updates it when the block returns a new color.

## See Also

- [GSLayer Kind](/Core/GlyphsCore/GSLayer-Kind) — The different roles that a layer can serve.
- [GSLayer Shapes](/Core/GlyphsCore/GSLayer-Shapes) — The paths and components that form the outline of a layer.
- [GSLayer Bounds](/Core/GlyphsCore/GSLayer-Bounds) — Bounding rectangles of outlines, selections, and metrics.
- [GSLayer Metrics](/Core/GlyphsCore/GSLayer-Metrics) — Side bearings, baseline offsets, layer box, and metrics keys.
- [GSLayer Grid](/Core/GlyphsCore/GSLayer-Grid) — Setting for rounding coordinates on a layer.
- [GSLayer Background](/Core/GlyphsCore/GSLayer-Background) — Background content and reference images associated with a layer.
- [GSLayer Anchors](/Core/GlyphsCore/GSLayer-Anchors) — Named attachment points on a layer.
- [GSLayer Hints](/Core/GlyphsCore/GSLayer-Hints) — Manual and generated hint data on a layer.
- [GSLayer Guides](/Core/GlyphsCore/GSLayer-Guides) — Layer-local guides used while editing outlines.
- [GSLayer Kerning](/Core/GlyphsCore/GSLayer-Kerning) — Spacing adjustment between specific layers.
- [GSLayer Annotations](/Core/GlyphsCore/GSLayer-Annotations) — Layer-local notes displayed with a glyph.
- [GSLayer Interpolation](/Core/GlyphsCore/GSLayer-Interpolation) — Axis coordinates and rules that place layers in a design space.
- [GSLayer Attributes](/Core/GlyphsCore/GSLayer-Attributes) — Additional values stored for a layer.
- [GSLayer Inspection](/Core/GlyphsCore/GSLayer-Inspection) — Intersections between layer outlines and line segments.
- [GSLayer Editing](/Core/GlyphsCore/GSLayer-Editing) — Operations for modifying outlines and other layer content.

