name2rgb

版本 1.0.0.0 (1.6 KB) 作者: Peder Axensten
Return the rgb vector of a color name.

2.1K 次下载

更新时间 2006/7/24

查看许可证

USAGE: color_vector= name2rgb(color_name)

Return the rgb vector of a color name.

EXAMPLE:
name2rgb2({'r', 'blue', 'pp', 'y'})
ans = 1 0 0 0 0 1 NaN NaN NaN 1 1 0

HISTORY:
Version 1.0, 2006-07-19.
Version 1.1, 2006-07-22:
- Much more efficient (and elegant?) code, thanks to Urs (us) Schwarz!

Copyright (C) Peder Axensten <peder@axensten.se>

引用格式

Peder Axensten (2023). name2rgb (https://www.mathworks.com/matlabcentral/fileexchange/11750-name2rgb), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R14SP1
兼容任何版本
平台兼容性
Windows macOS Linux
致谢

启发作品: Convert between RGB and Color Names

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0

- Much more efficient (and elegant?) code, thanks to Urs (us) Schwarz!