In: |
imlib2.c
|
Parent: | Object |
Imlib2::Color::HlsaColor constructor.
Parameters are identical to Imlib2::Color::HlsaColor::new.
Returns a new Imlib2::Color::HlsaColor.
Examples:
h, l, s, a = 255, 0, 0, 255 border = Imlib2::Color::HlsaColor.new h, l, s, a values = [255, 0, 0, 255] border = Imlib2::Color::HlsaColor.new values
Get the lightness element of a HlsaColor object.
Examples:
amount = color.lightness amount = color.l
Get the lightness element of a HlsaColor object.
Examples:
amount = color.lightness amount = color.l
Get the saturation element of a HlsaColor object.
Examples:
amount = color.saturation amount = color.s
Get the saturation element of a HlsaColor object.
Examples:
amount = color.saturation amount = color.s