"DTD/xhtml1-strict.dtd">
Class Imlib2::Color::RgbaColor
|
|
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
Get the red element of a RgbaColor object.
Examples:
amount = color.red
amount = color.r
Set the red element of a RgbaColor object.
Examples:
color.red = 255
color.r = 255
Get the red element of a RgbaColor object.
Examples:
amount = color.red
amount = color.r
Set the red element of a RgbaColor object.
Examples:
color.red = 255
color.r = 255
Get the green element of a RgbaColor object.
Examples:
amount = color.green
amount = color.g
Set the green element of a RgbaColor object.
Examples:
color.green = 255
color.g = 255
Get the green element of a RgbaColor object.
Examples:
amount = color.green
amount = color.g
Set the green element of a RgbaColor object.
Examples:
color.green = 255
color.g = 255
Get the blue element of a RgbaColor object.
Examples:
amount = color.blue
amount = color.b
Set the blue element of a RgbaColor object.
Examples:
color.blue = 255
color.b = 255
Get the blue element of a RgbaColor object.
Examples:
amount = color.blue
amount = color.b
Set the blue element of a RgbaColor object.
Examples:
color.blue = 255
color.b = 255
Get the alpha element of a RgbaColor object.
Examples:
amount = color.alpha
amount = color.a
Set the alpha element of a RgbaColor object.
Examples:
color.alpha = 255
color.a = 255
Get the alpha element of a RgbaColor object.
Examples:
amount = color.alpha
amount = color.a
Set the alpha element of a RgbaColor object.
Examples:
color.alpha = 255
color.a = 255