colors(name)

Return RGB color triplet for a color name.
356.0 次下载
更新时间 2016/3/21

查看许可证

This uses R-colors table to translate color names to RGB [0-1] triplets.
examples:
colors
Opens a figure with all colors. Click on one to know its name and RGB triplet.

colors('violet')
ans =
0.9333 0.5098 0.9333

colors({'blue4','orchid'})
ans =
0 0 0.5451
0.8549 0.4392 0.8392

引用格式

Maximilien Chaumon (2026). colors(name) (https://ww2.mathworks.cn/matlabcentral/fileexchange/56006-colors-name), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2014b
兼容任何版本
平台兼容性
Windows macOS Linux
版本 已发布 发行说明
1.0.0.0

add figure