OpenMetaverse Protocol Library Developers API Documentation
Color4 Constructor (byteArray, pos, inverted, alphaInverted)
NamespacesOpenMetaverseColor4Color4( array< Byte > [] () [] [] , Int32, Boolean, Boolean)
Returns the raw bytes for this vector
Declaration Syntax
C#
public 
Color4(
        
byte[] 
byteArray,
        
int 
pos,
        
bool 
inverted,
        
bool 
alphaInverted
)
Parameters
byteArray ( array< Byte > [] () [] [] )
Byte array containing a 16 byte color
pos ( Int32)
Beginning position in the byte array
inverted ( Boolean)
True if the byte array stores inverted values, otherwise false. For example the color black (fully opaque) inverted would be 0xFF 0xFF 0xFF 0x00
alphaInverted ( Boolean)
True if the alpha value is inverted in addition to whatever the inverted parameter is. Setting inverted true and alphaInverted true will flip the alpha value back to non-inverted, but keep the other color bytes inverted
Return Value
A 16 byte array containing R, G, B, and A

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