colors(name)

Return RGB color triplet for a color name.
ダウンロード: 337
更新 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 (2024). colors(name) (https://www.mathworks.com/matlabcentral/fileexchange/56006-colors-name), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R2014b
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersContrast Adjustment についてさらに検索
タグ タグを追加
謝辞

ヒントを与えたファイル: 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

add figure