colors(name)
Versione 1.0.0.0 (19 KB) da
Maximilien Chaumon
Return RGB color triplet for a color name.
This uses R-colors table to translate color names to RGB [0-1] triplets.
examples:
colors
Opens a figure with all colors. Click on one to know its name and RGB triplet.
colors('violet')
ans =
0.9333 0.5098 0.9333
colors({'blue4','orchid'})
ans =
0 0 0.5451
0.8549 0.4392 0.8392
Cita come
Maximilien Chaumon (2026). colors(name) (https://it.mathworks.com/matlabcentral/fileexchange/56006-colors-name), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Creato con
R2014b
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS LinuxCategorie
- Image Processing and Computer Vision > Image Processing Toolbox > Image Filtering and Enhancement > Contrast Adjustment >
Scopri di più su Contrast Adjustment in Help Center e MATLAB Answers
Tag
Riconoscimenti
Ispirato: Convert between RGB and Color Names
Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
| Versione | Pubblicato | Note della release | |
|---|---|---|---|
| 1.0.0.0 | add figure |
