Class: Wx::Image::HSVValue
- Inherits:
-
Object
- Object
- Wx::Image::HSVValue
- Defined in:
- lib/wx/doc/image.rb
Instance Attribute Summary collapse
-
#hue ⇒ Object
readonly
Returns the value of attribute hue.
-
#saturation ⇒ Object
readonly
Returns the value of attribute saturation.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(hue, saturation, value) ⇒ Wx::Image::HSVValue
constructor
Constructor for HSVValue, an object that contains values for hue, saturation and value which represent the value of a color.
-
#to_ary ⇒ Array(Float,Float,Float)
Make HSVValue usable for parallel assignments like
hue, saturation, value = hsv
. -
#to_rgb ⇒ Wx::Image::RGBValue
Convert to RGBValue.
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.
70 |
# File 'lib/wx/doc/image.rb', line 70 def initialize(hue, saturation, value)end |
Instance Attribute Details
#hue ⇒ Object (readonly)
Returns the value of attribute hue.
72 73 74 |
# File 'lib/wx/doc/image.rb', line 72 def hue @hue end |
#saturation ⇒ Object (readonly)
Returns the value of attribute saturation.
72 73 74 |
# File 'lib/wx/doc/image.rb', line 72 def saturation @saturation end |
#value ⇒ Object (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_ary ⇒ Array(Float,Float,Float)
Make HSVValue usable for parallel assignments like hue, saturation, value = hsv
76 |
# File 'lib/wx/doc/image.rb', line 76 def to_ary; end |
#to_rgb ⇒ Wx::Image::RGBValue
Convert to RGBValue
80 |
# File 'lib/wx/doc/image.rb', line 80 def to_rgb; end |