Imlib2::Color::HsvaColor (Class)

In: imlib2.c  (CVS)
Parent: Object

Methods

[]   []=   a   a=   alpha   alpha=   h   h=   hue   hue=   new   new   s   s=   saturation   saturation=   v   v=   value   value=  

Public Class methods

Imlib2::Color::HsvaColor constructor.

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

Returns a new Imlib2::Color::HsvaColor.

Examples:

  h, s, v, a = 255, 0, 0, 255
  border = Imlib2::Color::HsvaColor.new h, s, v, a

  values = [255, 0, 0, 255]
  border = Imlib2::Color::HsvaColor.new values

Public Instance methods

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

Get the alpha element of a HsvaColor object.

Examples:

  amount = color.alpha
  amount = color.a

Set the alpha element of a HsvaColor object.

Examples:

  color.alpha = 255
  color.a = 255

Get the alpha element of a HsvaColor object.

Examples:

  amount = color.alpha
  amount = color.a

Set the alpha element of a HsvaColor object.

Examples:

  color.alpha = 255
  color.a = 255

Get the hue element of a HsvaColor object.

Examples:

  amount = color.hue
  amount = color.h

Set the hue element of a HsvaColor object.

Examples:

  color.hue = 255
  color.h = 255

Get the hue element of a HsvaColor object.

Examples:

  amount = color.hue
  amount = color.h

Set the hue element of a HsvaColor object.

Examples:

  color.hue = 255
  color.h = 255

Get the saturation element of a HsvaColor object.

Examples:

  amount = color.saturation
  amount = color.s

Set the saturation element of a HsvaColor object.

Examples:

  color.saturation = 255
  color.s = 255

Get the saturation element of a HsvaColor object.

Examples:

  amount = color.saturation
  amount = color.s

Set the saturation element of a HsvaColor object.

Examples:

  color.saturation = 255
  color.s = 255

Get the value element of a HsvaColor object.

Examples:

  amount = color.value
  amount = color.v

Set the value element of a HsvaColor object.

Examples:

  color.value = 255
  color.v = 255

Get the value element of a HsvaColor object.

Examples:

  amount = color.value
  amount = color.v

Set the value element of a HsvaColor object.

Examples:

  color.value = 255
  color.v = 255

[Validate]