Struct ColorSwatchEntryData
A single serializable swatch entry for use in ColorSwatchCollectionData. Represents a named quick-access color as used by the Chroma Swatches Library.
Inherited Members
Namespace: Scylla.Core.Util.Palette
Assembly: ScyllaCore.dll
Syntax
[Serializable]
public struct ColorSwatchEntryData
Remarks
Swatches are lightweight compared to palette entries: they carry only a name and an RGBA color. They are not role-annotated and cannot be locked. This keeps the Chroma swatch workflow focused on quick color reuse rather than semantic palette construction.
Constructors
ColorSwatchEntryData(string, Color)
Creates a new swatch entry.
Declaration
public ColorSwatchEntryData(string name, Color color)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The swatch name. |
| Color | color | The swatch color. |
Fields
Color
The RGBA color value in float precision (0.0-1.0 per component). Alpha is fully preserved through serialization and conversion.
Declaration
[Tooltip("Swatch color value with full alpha support.")]
public Color Color
Field Value
| Type | Description |
|---|---|
| Color |
Name
The human-readable name of this swatch. Used as a label in the Swatches Library list and as the display tooltip during drag operations.
Declaration
[Tooltip("Swatch display name.")]
public string Name
Field Value
| Type | Description |
|---|---|
| string |