Class: Imlib2::Color::CmyaColor

Class | Imlib2::Color::CmyaColor
In: | imlib2.c (CVS)
Parent: | Object

### Methods

[] []= a a= alpha alpha= c c= cyan cyan= m m= magenta magenta= new new y y= yellow yellow=

### Public Class methods

new(...)

Imlib2::Color::CmyaColor constructor.

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

new(...)

Returns a new Imlib2::Color::CmyaColor.

Examples:

      c, m, y, a = 255, 0, 0, 255
      border = Imlib2::Color::CmyaColor.new c, m, y, a

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

### Public Instance methods

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

Get the alpha element of a CmyaColor object.

Examples:

      amount = color.alpha
      amount = color.a

a=(p1)

Set the alpha element of a CmyaColor object.

Examples:

      color.alpha = 255
      color.a = 255

alpha()

Get the alpha element of a CmyaColor object.

Examples:

      amount = color.alpha
      amount = color.a

alpha=(p1)

Set the alpha element of a CmyaColor object.

Examples:

      color.alpha = 255
      color.a = 255

c()

Get the cyan element of a CmyaColor object.

Examples:

      amount = color.cyan
      amount = color.c

c=(p1)

Set the cyan element of a CmyaColor object.

Examples:

      color.cyan = 255
      color.c = 255

cyan()

Get the cyan element of a CmyaColor object.

Examples:

      amount = color.cyan
      amount = color.c

cyan=(p1)

Set the cyan element of a CmyaColor object.

Examples:

      color.cyan = 255
      color.c = 255

m()

Get the magenta element of a CmyaColor object.

Examples:

      amount = color.magenta
      amount = color.m

m=(p1)

Set the magenta element of a CmyaColor object.

Examples:

      color.magenta = 255
      color.m = 255

magenta()

Get the magenta element of a CmyaColor object.

Examples:

      amount = color.magenta
      amount = color.m

magenta=(p1)

Set the magenta element of a CmyaColor object.

Examples:

      color.magenta = 255
      color.m = 255

y()

Get the yellow element of a CmyaColor object.

Examples:

      amount = color.yellow
      amount = color.y

y=(p1)

Set the yellow element of a CmyaColor object.

Examples:

      color.yellow = 255
      color.y = 255

yellow()

Get the yellow element of a CmyaColor object.

Examples:

      amount = color.yellow
      amount = color.y

yellow=(p1)

Set the yellow element of a CmyaColor object.

Examples:

      color.yellow = 255
      color.y = 255

[Validate]