API Collection
GSLayer Color
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
The effective color used to represent the layer, or
nilwhen no color is configured.The layer’s palette color from the given palette, or
nilwhen it cannot be resolved.The effective color palettes for the layer, or
nilwhen none are configured.
Inspecting Colors
Whether the first shape is a component whose glyph uses a color-layer format.
A stable description of the color-layer format, or an empty string for a non-color layer.
A localized description of the color-layer format, or an empty string for a non-color layer.
Transforming Colors
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
The different roles that a layer can serve.
The paths and components that form the outline of a layer.
Bounding rectangles of outlines, selections, and metrics.
Side bearings, baseline offsets, layer box, and metrics keys.
Setting for rounding coordinates on a layer.
Background content and reference images associated with a layer.
Named attachment points on a layer.
Manual and generated hint data on a layer.
Layer-local guides used while editing outlines.
Spacing adjustment between specific layers.
Layer-local notes displayed with a glyph.
Axis coordinates and rules that place layers in a design space.
Additional values stored for a layer.
Intersections between layer outlines and line segments.
Operations for modifying outlines and other layer content.