rgbmap color maps

Create color maps from actual names that people use for colors.
1,9K descargas
Actualizado 20 jun 2014

Ver licencia

This function requires the rgb function found here: http://www.mathworks.com/matlabcentral/fileexchange/46872
The rgb function uses a database which was created by showing hundreds of thousands of viewers more than 900 of the most commonly-used colors on the internet, and getting users to use their own words to describe that color. The result is a database of the most commonly-used names for colors, the way they are perceived on computer monitors.
The rgbmap function presented here creates color maps using any number of these strings as inputs.

cmap = rgbmap('first color name','second color name')
cmap = rgbmap('first color name','second color name',...,'nth color name')
cmap = rgbmap(...,levels)

cmap = rgbmap('first color name','second color name') creates an RGB color map cmap from some first color to a second color.

cmap = rgbmap('first color name','second color name',...,'nth color name') creates a color map linearly scaled between any number of colors.

cmap = rgbmap(...,M) specifies the approximate number of levels |M| of the M x 3 output colormap.

rgbmap(...) sets the color map without creating an array in the workspace.

The example image shown above was created like this:

rgbmap('pinkish purple','dark taupe','tiffany blue','azure','army green')

Citar como

Chad Greene (2024). rgbmap color maps (https://www.mathworks.com/matlabcentral/fileexchange/46874-rgbmap-color-maps), MATLAB Central File Exchange. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R2012b
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!


Versión Publicado Notas de la versión

Fix to ensure correct number of output levels.

included link to rgb function.