Scilab 5.3.1
- Scilab help
- Graphics Library
- Color management
- addcolor
- autumncolormap
- bonecolormap
- color
- color_list
- colorbar
- colordef
- colormap
- coolcolormap
- coppercolormap
- getcolor
- graycolormap
- hotcolormap
- hsv2rgb
- hsvcolormap
- jetcolormap
- name2rgb
- oceancolormap
- pinkcolormap
- rainbowcolormap
- rgb2name
- springcolormap
- summercolormap
- whitecolormap
- wintercolormap
Please note that the recommended version of Scilab is 2026.0.0. This page might be outdated.
See the recommended documentation of this function
addcolor
カレントのカラーマップに新色を追加する
呼び出し手順
new=addcolor(c)
パラメータ
- new
新しい色テーブルで c で定義された色のID.
- c
3列の行列, RGBカラー定義.
説明
addcolor は引数cで指定された新色を
カレントのカラーマップに追加します.
cは3つの列[R G B]
(R は赤要素, G は緑要素,
B は青要素)
を有する行列である必要があります.
cの各エントリは1以下の非負の数です.
新色のIDがnewに返されます.
cで定義した色が既にカレントの色マップに存在する場合,
その色は追加されません.
例
plot3d(); h = gcf(); h.color_map = jetcolormap(16); addcolor(name2rgb('grey')/255);
| << Color management | Color management | autumncolormap >> |