Al momento, stai seguendo questo contributo
- Vedrai gli aggiornamenti nel tuo feed del contenuto seguito
- Potresti ricevere delle email a seconda delle tue preferenze per le comunicazioni
The selectcolor function is a compact alternative to uisetcolor. It places some 'quick selection' color choices into a single window with sliders and edit boxes to manually adjust RGB channel values or enter a hex code directly. Colors can also be specified using keyboard shortcuts for red, green, blue, cyan, magenta, yellow, black, white or orange ('r', 'g', 'b', 'c', 'm', 'y', 'k', 'w', 'o', respectively).
The dialog uses the same syntax as uisetcolor so that it can be used a a drop-in replacement for uisetcolor.
Additionally, the handle to a current figure can optionally be passed to selectcolor, which will position the selectcolor dialog centered over the figure represented by the handle. This is useful for when selectcolor is called from another GUI figure, placing the dialog in a convenient location.
It also accepts an optional dialog color input that can be used to create a non-standard colored dialog with a black or white background.
Cita come
Peter Beemiller (2026). selectcolor.m (https://it.mathworks.com/matlabcentral/fileexchange/47708-selectcolor-m), MATLAB Central File Exchange. Recuperato .
Riconoscimenti
Ispirato da: UICOMPONENT - expands uicontrol to all Java classes
Informazioni generali
- Versione 1.1.0.0 (22,5 KB)
Compatibilità della release di MATLAB
- Compatibile con qualsiasi release
Compatibilità della piattaforma
- Windows
- macOS
- Linux
