Intuitive RGB color values from XKCD

버전 1.5.0.0 (53.8 KB) 작성자: Chad Greene
RGB triplets for 949 colors, by how they're perceived on a computer monitor and their common names.
다운로드 수: 4.8K
업데이트 날짜: 2017/6/12

라이선스 보기

This function returns the RGB triplet for almost any color. And unlike the way colors are somewhat officially defined (http://en.wikipedia.org/wiki/Web_colors), this data set describes returns values for the ways that colors are actually perceived on computer monitors. Color names are intuitive because they are based on a survey of over 200,000 user sessions, wherein respondents were shown colors and asked to fill in their word for that color. You won't find "puke green" on Wikipedia's list of web colors, despite the fact that it's a color name that people use and understand.

Data come from an XKCD survey described here: http://blog.xkcd.com/2010/05/03/color-survey-results/
A chart of available colors and their most common names can be found here: http://xkcd.com/color/rgb/

Syntax
RGB = rgb('Color Name')
RGB = rgb('Color Name 1','Color Name 2',...,'Color Name N')
RGB = rgb({'Color Name 1','Color Name 2',...,'Color Name N'})

Description
RGB = rgb('Color Name') returns the RGB triplet for a color described by 'Color Name'.

RGB = rgb('Color Name 1','Color Name 2',...,'Color Name N') returns an N by 3 matrix containing RGB triplets for each color name.

RGB = rgb({'Color Name 1','Color Name 2',...,'Color Name N'}) accepts list of color names as a character array.

인용 양식

Chad Greene (2024). Intuitive RGB color values from XKCD (https://www.mathworks.com/matlabcentral/fileexchange/46872-intuitive-rgb-color-values-from-xkcd), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R2012b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!

XKCD_RGB/html/

버전 게시됨 릴리스 정보
1.5.0.0

The rgb data are now included in the zip file.

1.4.0.0

Fixed a bug in the installation script. Installation is now performed fully within the rgb function.

1.3.0.0

Included hex2rgb function and improved error handling.

1.2.0.0

Now supports multiple inputs and offers help for misspelled inputs.

1.1.0.0

Link to hex2rgb, rgb2hex.

1.0.0.0