struct Selenite
- Selenite
- Struct
- Value
- Object
Defined in:
selenite.crClass Method Summary
-
.hsl_to_rgb(_h : Float64, _s : Float64, _l : Float64) : Tuple(Float64, Float64, Float64)
Returns a rgb tuple Tuple(Float64, Float64, Float64)
-
.hsl_to_rgb(_hsv : Tuple(Float64, Float64, Float64)) : Tuple(Float64, Float64, Float64)
Returns a rgb tuple Tuple(Float64, Float64, Float64)
-
.hsv_to_rgb(_h : Float64, _s : Float64, _v : Float64) : Tuple(Float64, Float64, Float64)
Returns a rgb tuple Tuple(Float64, Float64, Float64)
-
.hsv_to_rgb(_hsv : Tuple(Float64, Float64, Float64)) : Tuple(Float64, Float64, Float64)
Returns a rgb tuple Tuple(Float64, Float64, Float64)
-
.rgb_to_hsl(_r : Float64, _g : Float64, _b : Float64) : Tuple(Float64, Float64, Float64)
Returns a hsl tuple Tuple(Float64, Float64, Float64)
-
.rgb_to_hsl(_rgb : Tuple(Float64, Float64, Float64)) : Tuple(Float64, Float64, Float64)
Returns a hsl tuple Tuple(Float64, Float64, Float64)
-
.rgb_to_hsv(_r : Float64, _g : Float64, _b : Float64) : Tuple(Float64, Float64, Float64)
Returns a hsv tuple Tuple(Float64, Float64, Float64)
-
.rgb_to_hsv(_rgb : Tuple(Float64, Float64, Float64)) : Tuple(Float64, Float64, Float64)
Returns a hsv tuple Tuple(Float64, Float64, Float64)
Class Method Detail
Returns a rgb tuple Tuple(Float64, Float64, Float64)
Selenite.hsl_to_rgb(300.0, 100.0, 50.0) # => {255.0, 0.0, 255.0}
Returns a rgb tuple Tuple(Float64, Float64, Float64)
Selenite.hsl_to_rgb({300.0, 100.0, 50.0}) # => {255.0, 0.0, 255.0}
Returns a rgb tuple Tuple(Float64, Float64, Float64)
Selenite.hsv_to_rgb(42.0, 42.0, 42.0) # => {107.0, 94.0, 62.0}
Returns a rgb tuple Tuple(Float64, Float64, Float64)
Selenite.hsv_to_rgb({42.0, 42.0, 42.0}) # => {107.0, 94.0, 62.0}
Returns a hsl tuple Tuple(Float64, Float64, Float64)
Selenite.rgb_to_hsl(128.0, 0.0, 128.0) # => {300.0, 100.0, 25.0}
Returns a hsl tuple Tuple(Float64, Float64, Float64)
Selenite.rgb_to_hsl({128.0, 0.0, 128.0}) # => {300.0, 100.0, 25.0}
Returns a hsv tuple Tuple(Float64, Float64, Float64)
Selenite.rgb_to_hsv(10.0, 22.0, 33.0) # => {208.69565217391306, 69.6969696969697, 12.941176470588237}
Returns a hsv tuple Tuple(Float64, Float64, Float64)
Selenite.rgb_to_hsv({10.0, 22.0, 33.0}) # => {208.69565217391306, 69.6969696969697, 12.941176470588237}