Imlib2::Color::HlsaColor (Class)

In: imlib2.c
Parent: Object

Methods

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

Public Class methods

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

Public Instance methods

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

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

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

[Validate]