OpenMetaverse Protocol Library Developers API Documentation
Color4 Structure
NamespacesOpenMetaverseColor4
An 8-bit color structure including an alpha channel
Declaration Syntax
C#
[
SerializableAttribute]
public 
struct 
Color4 : 
IComparable<
Color4>, 
        
IEquatable<
Color4>
Members
All Members Constructors Methods Fields



Icon Member Description
Color4(Byte, Byte, Byte, Byte)
Initializes a new instance of the Color4class

Color4(Single, Single, Single, Single)
Initializes a new instance of the Color4class

Color4( array< Byte > [] () [] [] , Int32, Boolean)
Builds a color from a byte array

Color4( array< Byte > [] () [] [] , Int32, Boolean, Boolean)
Returns the raw bytes for this vector

Color4(Color4)
Copy constructor

A
Alpha

Addition(Color4, Color4)
B
Blue

Black
A Color4 with zero RGB values and fully opaque (alpha 1.0)

ClampValues () () () ()
Ensures that values are in range 0-1

CompareTo(Color4)
IComparable.CompareTo implementation

Equality(Color4, Color4)
Equals(Object) (Overrides ValueType. Equals(Object).)
Equals(Color4)
FromBytes( array< Byte > [] () [] [] , Int32, Boolean)
FromBytes( array< Byte > [] () [] [] , Int32, Boolean, Boolean)
Builds a color from a byte array

FromHSV(Double, Double, Double)
Create an RGB color from a hue, saturation, value combination

G
Green

GetBytes () () () ()
GetBytes(Boolean)
GetFloatBytes () () () ()
GetHashCode () () () () (Overrides ValueType. GetHashCode () () () () .)
GetHue () () () ()
Inequality(Color4, Color4)
Lerp(Color4, Color4, Single)
Performs linear interpolation between two colors

Multiply(Color4, Color4)
R
Red

Subtraction(Color4, Color4)
ToBytes( array< Byte > [] () [] [] , Int32)
Writes the raw bytes for this color to a byte array

ToBytes( array< Byte > [] () [] [] , Int32, Boolean)
Serializes this color into four bytes in a byte array

ToFloatBytes( array< Byte > [] () [] [] , Int32)
Writes the raw bytes for this color to a byte array

ToRGBString () () () ()
ToString () () () () (Overrides ValueType. ToString () () () () .)
White
A Color4 with full RGB values (1.0) and fully opaque (alpha 1.0)

Assembly: OpenMetaverseTypes(Module: OpenMetaverseTypes.dll) Version: 0.0.0.0