OOF2: The Manual

Name

RGBAColor (RGBAColor) — Color specified as a Red, Green, Blue, Alpha quartet.

Synopsis

RGBAColor(red, green, blue, alpha)

Details

  • Base class: TranslucentColor
  • Parameters:

    red
    Value of Red. Type: A real number in the range [0, 1].
    green
    Value of Green. Type: A real number in the range [0, 1].
    blue
    Value of Blue. Type: A real number in the range [0, 1].
    alpha
    Opacity. Type: A real number in the range [0, 1].

Description

RGBAColor specifies a color in terms of its red, green, and blue values, and its opacity alpha.

The three color parameters are floating point numbers between 0 and 1 inclusive, where 0 is the lowest intensity and 1 is the highest. Setting all three to 0 yields black, and setting all three to 1 yields white.

alpha is the opacity of the color. It is a floating point number between 0 and 1, where 0 is completely transparent and 1 is completely opaque.

See Also