struct
Godot::Color::HSV
- Godot::Color::HSV
- Struct
- Value
- Object
Overview
Intermediary representation for Hue, Saturation, Value, and Alpha
Defined in:
libgodot/types/color.crConstructors
- .new(h : Float32, s : Float32, v : Float32, a : Float32 = 1.0_f32)
- .new(h : Number, s : Number, v : Number, a : Number = 1.0)
Instance Method Summary
- #a : Float32
- #a=(a : Float32)
- #a=(val : Number) : Void
- #h : Float32
- #h=(h : Float32)
- #h=(val : Number) : Void
- #s : Float32
- #s=(s : Float32)
- #s=(val : Number) : Void
-
#to_color : Godot::Color
Converts this HSV value back into a standard Godot::Color
-
#to_rgb : Godot::Color
Shorthand alias to to_color
-
#to_s(io : IO) : Void
Same as
#inspect(io). - #v : Float32
- #v=(v : Float32)
- #v=(val : Number) : Void
- #with_a(new_a : Number) : HSV
- #with_h(new_h : Number) : HSV
- #with_s(new_s : Number) : HSV
- #with_v(new_v : Number) : HSV
Instance methods inherited from class Object
try?(&)try? try?