Creates a new color presentation.
The label of this color presentation.
Optional
additionalAn optional array of additional text edits that are applied when selecting this color presentation. Edits must not overlap with the main edit nor with themselves.
The label of this color presentation. It will be shown on the color picker header. By default this is also the text that is inserted when selecting this color presentation.
Optional
text
A color presentation object describes how a
color
should be represented as text and what edits are required to refer to it from source code.For some languages one color can have multiple presentations, e.g. css can represent the color red with the constant
Red
, the hex-value#ff0000
, or in rgba and hsla forms. In csharp other representations apply, e.gSystem.Drawing.Color.Red
.