Class: Imlib2::Color::HsvaColor

Class | Imlib2::Color::HsvaColor
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

new(...)

Imlib2::Color::HsvaColor constructor.

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

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)
a()

Get the alpha element of a HsvaColor object.

Examples:

      amount = color.alpha
      amount = color.a

a=(p1)

Set the alpha element of a HsvaColor object.

Examples:

      color.alpha = 255
      color.a = 255

alpha()

Get the alpha element of a HsvaColor object.

Examples:

      amount = color.alpha
      amount = color.a

alpha=(p1)

Set the alpha element of a HsvaColor object.

Examples:

      color.alpha = 255
      color.a = 255

h()

Get the hue element of a HsvaColor object.

Examples:

      amount = color.hue
      amount = color.h

h=(p1)

Set the hue element of a HsvaColor object.

Examples:

      color.hue = 255
      color.h = 255

hue()

Get the hue element of a HsvaColor object.

Examples:

      amount = color.hue
      amount = color.h

hue=(p1)

Set the hue element of a HsvaColor object.

Examples:

      color.hue = 255
      color.h = 255

s()

Get the saturation element of a HsvaColor object.

Examples:

      amount = color.saturation
      amount = color.s

s=(p1)

Set the saturation element of a HsvaColor object.

Examples:

      color.saturation = 255
      color.s = 255

saturation()

Get the saturation element of a HsvaColor object.

Examples:

      amount = color.saturation
      amount = color.s

saturation=(p1)

Set the saturation element of a HsvaColor object.

Examples:

      color.saturation = 255
      color.s = 255

v()

Get the value element of a HsvaColor object.

Examples:

      amount = color.value
      amount = color.v

v=(p1)

Set the value element of a HsvaColor object.

Examples:

      color.value = 255
      color.v = 255

value()

Get the value element of a HsvaColor object.

Examples:

      amount = color.value
      amount = color.v

value=(p1)

Set the value element of a HsvaColor object.

Examples:

      color.value = 255
      color.v = 255

[Validate]