Class | Rubygame::Color::ColorHSL |
In: |
lib/rubygame/color/models/hsl.rb
lib/rubygame/color/models/hsl.rb |
Parent: | Object |
Represents color in the HSL (Hue, Saturation, Luminosity) color space.
a | [R] | |
a | [R] | |
h | [R] | |
h | [R] | |
l | [R] | |
l | [R] | |
s | [R] | |
s | [R] |
Create a new instance from an Array or an existing color (of any type). If the alpha (opacity) component is omitted from the array, full opacity will be used.
All color components range from 0.0 to 1.0.
Create a new instance from an Array or an existing color (of any type). If the alpha (opacity) component is omitted from the array, full opacity will be used.
All color components range from 0.0 to 1.0.
Return an Array with the red, green, blue, and alpha components of the color (converting the color to the RGBA model first).