"DTD/xhtml1-strict.dtd">
Class Imlib2::Color::RgbaColor
In: ./imlib2.c
Methods
a    a=    alpha    alpha=    b    b=    blue    blue=    g    g=    green    green=    initialize    new    r    r=    red    red=   
Public Class methods
new(int argc, VALUE *argv, VALUE klass)

Returns a new Imlib2::Color::RgbaColor.

Examples:

  r, g, b, a = 255, 0, 0, 255
  border = Imlib2::Color::RgbaColor.new r, g, b, a

  values = [255, 0, 0, 255]
  border = Imlib2::Color::RgbaColor.new values
Public Instance methods
initialize(int argc, VALUE *argv, VALUE self)

Imlib2::Color::RgbaColor constructor.

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

r(VALUE self)

Get the red element of a RgbaColor object.

Examples:

  amount = color.red
  amount = color.r
r=(VALUE self, VALUE val)

Set the red element of a RgbaColor object.

Examples:

  color.red = 255
  color.r = 255
red(VALUE self)

Get the red element of a RgbaColor object.

Examples:

  amount = color.red
  amount = color.r
red=(VALUE self, VALUE val)

Set the red element of a RgbaColor object.

Examples:

  color.red = 255
  color.r = 255
g(VALUE self)

Get the green element of a RgbaColor object.

Examples:

  amount = color.green
  amount = color.g
g=(VALUE self, VALUE val)

Set the green element of a RgbaColor object.

Examples:

  color.green = 255
  color.g = 255
green(VALUE self)

Get the green element of a RgbaColor object.

Examples:

  amount = color.green
  amount = color.g
green=(VALUE self, VALUE val)

Set the green element of a RgbaColor object.

Examples:

  color.green = 255
  color.g = 255
b(VALUE self)

Get the blue element of a RgbaColor object.

Examples:

  amount = color.blue
  amount = color.b
b=(VALUE self, VALUE val)

Set the blue element of a RgbaColor object.

Examples:

  color.blue = 255
  color.b = 255
blue(VALUE self)

Get the blue element of a RgbaColor object.

Examples:

  amount = color.blue
  amount = color.b
blue=(VALUE self, VALUE val)

Set the blue element of a RgbaColor object.

Examples:

  color.blue = 255
  color.b = 255
a(VALUE self)

Get the alpha element of a RgbaColor object.

Examples:

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

Set the alpha element of a RgbaColor object.

Examples:

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

Get the alpha element of a RgbaColor object.

Examples:

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

Set the alpha element of a RgbaColor object.

Examples:

  color.alpha = 255
  color.a = 255