COLOR_MODES_NAMES

enum
ColorPicker

Color model identifiers used by OrigamColorPicker to switch between input representations (hex, rgb, hsl, …).

TypeScript

Definition

The TypeScript definition as found in the origam source. Click the copy icon to copy the snippet.

typescript

Members

Members

All members of this enum. Click a value to copy it to clipboard.

COLOR_MODES_NAMES.RGB
Red / Green / Blue (no alpha).
COLOR_MODES_NAMES.RGBA
Red / Green / Blue / Alpha.
COLOR_MODES_NAMES.HSL
Hue / Saturation / Lightness (no alpha).
COLOR_MODES_NAMES.HSLA
Hue / Saturation / Lightness / Alpha.
COLOR_MODES_NAMES.HEX
Hexadecimal (6-digit, no alpha).
COLOR_MODES_NAMES.HEXA
Hexadecimal with alpha channel (8-digit).

Ecosystem

Used by

Components and props that accept this enum as a value.

Usage

Examples

Ready-to-paste code snippets using this enum.

Restricting the colour picker to hex input

vue