Class: Wx::Image::HSVValue

Inherits:
Object
  • Object
show all
Defined in:
lib/wx/doc/image.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hue, saturation, value) ⇒ Wx::Image::HSVValue

Constructor for HSVValue, an object that contains values for hue, saturation and value which represent the value of a color. It is used by Wx::Image.hsv_to_rgb and Wx::Image.rgb_to_hsv, which convert between HSV color space and RGB color space.

Parameters:

  • hue (Float)
  • saturation (Float)
  • value (Float)


70
# File 'lib/wx/doc/image.rb', line 70

def initialize(hue, saturation, value)end

Instance Attribute Details

#hueObject (readonly)

Returns the value of attribute hue.



72
73
74
# File 'lib/wx/doc/image.rb', line 72

def hue
  @hue
end

#saturationObject (readonly)

Returns the value of attribute saturation.



72
73
74
# File 'lib/wx/doc/image.rb', line 72

def saturation
  @saturation
end

#valueObject (readonly)

Returns the value of attribute value.



72
73
74
# File 'lib/wx/doc/image.rb', line 72

def value
  @value
end

Instance Method Details

#to_aryArray(Float,Float,Float)

Make HSVValue usable for parallel assignments like hue, saturation, value = hsv

Returns:

  • (Array(Float,Float,Float))


76
# File 'lib/wx/doc/image.rb', line 76

def to_ary; end

#to_rgbWx::Image::RGBValue

Convert to RGBValue

Returns:



80
# File 'lib/wx/doc/image.rb', line 80

def to_rgb; end