Change language to:
English - Français - Português

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

Scilab help >> Graphics > Color management > hsv2rgb

# hsv2rgb

HSV カラーを RGBに変換する

### 呼び出し手順

```[r,g,b] = hsv2rgb(h,s,v)
rgb = hsv2rgb(h,s,v)
[r,g,b] = hsv2rgb(hsv)
rgb = hsv2rgb(hsv)```

### パラメータ

h

s

v

hsv

n x 3行列. 各行には [hue saturation value] の組が含まれます.

r

g

b

rgb

n x 3 行列. 各行には [red green blue] の組が含まれます.

### 例

```t=[0:0.3:2*%pi]'; z=sin(t)*cos(t');
plot3d1(t,t,z)
f=gcf();f.pixmap='on';
for h=0:0.1:1
hsv=[h*ones(32,1) linspace(0,1,32)' 0.7*ones(32,1)];
f.color_map=hsv2rgb(hsv);
show_pixmap()
xpause(10000)
end
for v=0:0.1:1
hsv=[ones(32,1) linspace(0,1,32)' v*ones(32,1)];
f.color_map=hsv2rgb(hsv);
show_pixmap()
xpause(10000)
end```

### 作者

Serge Steer

INRIA

 << hotcolormap Color management hsvcolormap >>

 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:Thu May 12 11:45:56 CEST 2011