COLOR_MODES_NAMES
enum
ColorPicker
Color model identifiers used by OrigamColorPicker to switch between input representations (hex, rgb, hsl, …).
TypeScript
Définition
La définition TypeScript telle qu'elle apparaît dans le code source d'origam. Cliquez sur l'icône de copie pour copier l'extrait.
Membres
Membres
Tous les membres de cet enum. Cliquez sur une valeur pour la copier dans le presse-papiers.
- 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).
Écosystème
Utilisé par
Composants et props qui acceptent cet enum comme valeur.
Usage
Exemples
Extraits de code prêts à coller utilisant cet enum.
Restricting the colour picker to hex input