Google

"DTD/xhtml1-strict.dtd">
Class Imlib2::Color::HlsaColor
In: ./imlib2.c
Methods
a    a=    alpha    alpha=    h    h=    hue    hue=    initialize    l    l=    lightness    lightness=    new    s    s=    saturation    saturation=   
Public Class methods
new(int argc, VALUE *argv, VALUE klass)

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
Public Instance methods
initialize(int argc, VALUE *argv, VALUE self)

Imlib2::Color::HlsaColor constructor.

Parameters are identical to Imlib2::Color::HlsaColor::new.

h(VALUE self)

Get the hue element of a HlsaColor object.

Examples:

  amount = color.hue
  amount = color.h
h=(VALUE self, VALUE val)

Set the hue element of a HlsaColor object.

Examples:

  color.hue = 255
  color.h = 255
hue(VALUE self)

Get the hue element of a HlsaColor object.

Examples:

  amount = color.hue
  amount = color.h
hue=(VALUE self, VALUE val)

Set the hue element of a HlsaColor object.

Examples:

  color.hue = 255
  color.h = 255
l(VALUE self)

Get the lightness element of a HlsaColor object.

Examples:

  amount = color.lightness
  amount = color.l
l=(VALUE self, VALUE val)

Set the lightness element of a HlsaColor object.

Examples:

  color.lightness = 255
  color.l = 255
lightness(VALUE self)

Get the lightness element of a HlsaColor object.

Examples:

  amount = color.lightness
  amount = color.l
lightness=(VALUE self, VALUE val)

Set the lightness element of a HlsaColor object.

Examples:

  color.lightness = 255
  color.l = 255
s(VALUE self)

Get the saturation element of a HlsaColor object.

Examples:

  amount = color.saturation
  amount = color.s
s=(VALUE self, VALUE val)

Set the saturation element of a HlsaColor object.

Examples:

  color.saturation = 255
  color.h = 255
saturation(VALUE self)

Get the saturation element of a HlsaColor object.

Examples:

  amount = color.saturation
  amount = color.s
saturation=(VALUE self, VALUE val)

Set the saturation element of a HlsaColor object.

Examples:

  color.saturation = 255
  color.h = 255
a(VALUE self)

Get the alpha element of a HlsaColor object.

Examples:

  amount = color.alpha
  amount = color.a
a=(VALUE self, VALUE val)

Set the alpha element of a HlsaColor object.

Examples:

  color.alpha = 255
  color.a = 255
alpha(VALUE self)

Get the alpha element of a HlsaColor object.

Examples:

  amount = color.alpha
  amount = color.a
alpha=(VALUE self, VALUE val)

Set the alpha element of a HlsaColor object.

Examples:

  color.alpha = 255
  color.a = 255