Gimp::ColorSpace
Gimp::ColorSpace
色空間に関係するメソッドや定数が定義されている。
When programming pixel data manipulation functions you will often use algorithms operating on a color model different from the one GIMP uses. This module provides utility functions to concert colors between different color spaces.
Constants:
Gimp::ColorSpace::INTENSITY_RED
- -
Gimp::ColorSpace::INTENSITY_GREEN
- -
Gimp::ColorSpace::INTENSITY_BLUE
- -
Module functions:
Gimp::ColorSpace.rgb_to_hsv(r, g, b)
- h, s, v を返します。引数も返り値も整数です。
Gimp::ColorSpace.hsv_to_rgb(h, s, v)
- r, g, b を返します。引数も返り値も整数です。
Gimp::ColorSpace.rgb_to_hls(r, g, b)
- h, l, s を返します。引数も返り値も整数です。
Gimp::ColorSpace.hls_to_rgb(h, l, s)
- r, g, b を返します。引数も返り値も整数です。
Gimp::ColorSpace.rgb_to_l(r, g, b)
- -
Gimp::ColorSpace.rgb_to_hsv_float(r, g, b)
- h, s, v を返します。引数も返り値も浮動小数点数です。
Gimp::ColorSpace.hsv_to_rgb_float(h, s, v)
- r, g, b を返します。引数も返り値も浮動小数点数です。
Gimp::ColorSpace.rgb_to_hsv4(r, g, b)
- r, g, bは浮動小数点。整数でh, s, vを返します。 FIXME: 名前を変更
Gimp::ColorSpace.hsv_to_rgb4(h, s, v)
- h, s, vは浮動小数点。整数でr, g, bを返します。 FIXME: 名前を変更
Gimp::ColorSpace.INTENSITY(r, g, b)
- -
Keyword(s):
References:[Gimp-Ruby::Reference Manual]