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

Imlib2::Color::CmyaColor constructor.

Parameters are identical to Imlib2::Color::CmyaColor::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)

Get the alpha element of a CmyaColor object.

Examples:

  amount = color.alpha
  amount = color.a

Set the alpha element of a CmyaColor object.

Examples:

  color.alpha = 255
  color.a = 255

Get the alpha element of a CmyaColor object.

Examples:

  amount = color.alpha
  amount = color.a

Set the alpha element of a CmyaColor object.

Examples:

  color.alpha = 255
  color.a = 255

Get the cyan element of a CmyaColor object.

Examples:

  amount = color.cyan
  amount = color.c

Set the cyan element of a CmyaColor object.

Examples:

  color.cyan = 255
  color.c = 255

Get the cyan element of a CmyaColor object.

Examples:

  amount = color.cyan
  amount = color.c

Set the cyan element of a CmyaColor object.

Examples:

  color.cyan = 255
  color.c = 255

Get the magenta element of a CmyaColor object.

Examples:

  amount = color.magenta
  amount = color.m

Set the magenta element of a CmyaColor object.

Examples:

  color.magenta = 255
  color.m = 255

Get the magenta element of a CmyaColor object.

Examples:

  amount = color.magenta
  amount = color.m

Set the magenta element of a CmyaColor object.

Examples:

  color.magenta = 255
  color.m = 255

Get the yellow element of a CmyaColor object.

Examples:

  amount = color.yellow
  amount = color.y

Set the yellow element of a CmyaColor object.

Examples:

  color.yellow = 255
  color.y = 255

Get the yellow element of a CmyaColor object.

Examples:

  amount = color.yellow
  amount = color.y

Set the yellow element of a CmyaColor object.

Examples:

  color.yellow = 255
  color.y = 255

[Validate]