rgbmap color maps

버전 1.2.0.0 (204 KB) 작성자: Chad Greene
Create color maps from actual names that people use for colors.
다운로드 수: 1.9K
업데이트 날짜: 2014/6/20

라이선스 보기

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.

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

DESCRIPTION
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.

EXAMPLE
The example image shown above was created like this:

surf(peaks);
colorbar
rgbmap('pinkish purple','dark taupe','tiffany blue','azure','army green')

인용 양식

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

MATLAB 릴리스 호환 정보
개발 환경: R2012b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Green에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

rgbmapdemo/html/

버전 게시됨 릴리스 정보
1.2.0.0

Fix to ensure correct number of output levels.

1.1.0.0

included link to rgb function.

1.0.0.0