Class: Imlib2::Color::RgbaColor

# Imlib2::Color::RgbaColor (Class)

In: | imlib2.c
Parent: | Object

## Methods

[] []= a a= alpha alpha= b b= blue blue= g g= green green= new new r r= red red=

## Public Class methods

new(...)

Imlib2::Color::RgbaColor constructor.

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

new(...)

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

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

Get the alpha element of a RgbaColor object.

Examples:

      amount = color.alpha
      amount = color.a

a=(p1)

Set the alpha element of a RgbaColor object.

Examples:

      color.alpha = 255
      color.a = 255

alpha()

Get the alpha element of a RgbaColor object.

Examples:

      amount = color.alpha
      amount = color.a

alpha=(p1)

Set the alpha element of a RgbaColor object.

Examples:

      color.alpha = 255
      color.a = 255

b()

Get the blue element of a RgbaColor object.

Examples:

      amount = color.blue
      amount = color.b

b=(p1)

Set the blue element of a RgbaColor object.

Examples:

      color.blue = 255
      color.b = 255

blue()

Get the blue element of a RgbaColor object.

Examples:

      amount = color.blue
      amount = color.b

blue=(p1)

Set the blue element of a RgbaColor object.

Examples:

      color.blue = 255
      color.b = 255

g()

Get the green element of a RgbaColor object.

Examples:

      amount = color.green
      amount = color.g

g=(p1)

Set the green element of a RgbaColor object.

Examples:

      color.green = 255
      color.g = 255

green()

Get the green element of a RgbaColor object.

Examples:

      amount = color.green
      amount = color.g

green=(p1)

Set the green element of a RgbaColor object.

Examples:

      color.green = 255
      color.g = 255

r()

Get the red element of a RgbaColor object.

Examples:

      amount = color.red
      amount = color.r

r=(p1)

Set the red element of a RgbaColor object.

Examples:

      color.red = 255
      color.r = 255

red()

Get the red element of a RgbaColor object.

Examples:

      amount = color.red
      amount = color.r

red=(p1)

Set the red element of a RgbaColor object.

Examples:

      color.red = 255
      color.r = 255

[Validate]