"DTD/xhtml1-strict.dtd">
Class Imlib2::Color::HlsaColor
|
|
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 hue element of a HlsaColor object.
Examples:
amount = color.hue
amount = color.h
Set the hue element of a HlsaColor object.
Examples:
color.hue = 255
color.h = 255
Get the hue element of a HlsaColor object.
Examples:
amount = color.hue
amount = color.h
Set the hue element of a HlsaColor object.
Examples:
color.hue = 255
color.h = 255
Get the lightness element of a HlsaColor
object.
Examples:
amount = color.lightness
amount = color.l
Set the lightness element of a HlsaColor
object.
Examples:
color.lightness = 255
color.l = 255
Get the lightness element of a HlsaColor
object.
Examples:
amount = color.lightness
amount = color.l
Set the lightness element of a HlsaColor
object.
Examples:
color.lightness = 255
color.l = 255
Get the saturation element of a HlsaColor
object.
Examples:
amount = color.saturation
amount = color.s
Set the saturation element of a HlsaColor
object.
Examples:
color.saturation = 255
color.h = 255
Get the saturation element of a HlsaColor
object.
Examples:
amount = color.saturation
amount = color.s
Set the saturation element of a HlsaColor
object.
Examples:
color.saturation = 255
color.h = 255
Get the alpha element of a HlsaColor object.
Examples:
amount = color.alpha
amount = color.a
Set the alpha element of a HlsaColor object.
Examples:
color.alpha = 255
color.a = 255
Get the alpha element of a HlsaColor object.
Examples:
amount = color.alpha
amount = color.a
Set the alpha element of a HlsaColor object.
Examples:
color.alpha = 255
color.a = 255
|