Class: Imlib2::Color::HlsaColor

Class | Imlib2::Color::HlsaColor
In: | imlib2.c (CVS)
Parent: | Object

### Methods

[] []= a a= alpha alpha= h h= hue hue= l l= lightness lightness= new new s s= saturation saturation=

### Public Class methods

new(...)

Imlib2::Color::HlsaColor constructor.

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

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

### Public Instance methods

[]()
[]=(p1, p2)
a()

Get the alpha element of a HlsaColor object.

Examples:

      amount = color.alpha
      amount = color.a

a=(p1)

Set the alpha element of a HlsaColor object.

Examples:

      color.alpha = 255
      color.a = 255

alpha()

Get the alpha element of a HlsaColor object.

Examples:

      amount = color.alpha
      amount = color.a

alpha=(p1)

Set the alpha element of a HlsaColor object.

Examples:

      color.alpha = 255
      color.a = 255

h()

Get the hue element of a HlsaColor object.

Examples:

      amount = color.hue
      amount = color.h

h=(p1)

Set the hue element of a HlsaColor object.

Examples:

      color.hue = 255
      color.h = 255

hue()

Get the hue element of a HlsaColor object.

Examples:

      amount = color.hue
      amount = color.h

hue=(p1)

Set the hue element of a HlsaColor object.

Examples:

      color.hue = 255
      color.h = 255

l()

Get the lightness element of a HlsaColor object.

Examples:

      amount = color.lightness
      amount = color.l

l=(p1)

Set the lightness element of a HlsaColor object.

Examples:

      color.lightness = 255
      color.l = 255

lightness()

Get the lightness element of a HlsaColor object.

Examples:

      amount = color.lightness
      amount = color.l

lightness=(p1)

Set the lightness element of a HlsaColor object.

Examples:

      color.lightness = 255
      color.l = 255

s()

Get the saturation element of a HlsaColor object.

Examples:

      amount = color.saturation
      amount = color.s

s=(p1)

Set the saturation element of a HlsaColor object.

Examples:

      color.saturation = 255
      color.h = 255

saturation()

Get the saturation element of a HlsaColor object.

Examples:

      amount = color.saturation
      amount = color.s

saturation=(p1)

Set the saturation element of a HlsaColor object.

Examples:

      color.saturation = 255
      color.h = 255

[Validate]