Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.5.0 - 日本語

Change language to:
English - Français - Português - Русский

Please note that the recommended version of Scilab is 2024.0.0. This page might be outdated.
See the recommended documentation of this function

Scilabヘルプ >> Graphics > Color management > addcolor

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);

参照

  • colormap — カラーマップを定義
  • name2rgb — 指定した名前の色の RGB値を返す
Report an issue
<< Color management Color management autumncolormap >>

Copyright (c) 2022-2023 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Fri Apr 11 14:18:58 CEST 2014