Returns one element of a MFColor event-out slot.
Declaring type: EventOutMFColor
Namespace: Vrml.EAI.Field
Assembly: VrmlEAI.NET
Collapse/Expand Syntax
C#
public abstract float[] Get1Value (
        int index
) 
Parameters
index
The index of the element, starting at 0
Return Value
The color value. This is an array of three float values. The first value contains the red color component, the second value the green component, and the third value the blue component. Each component is between 0 and 1, inclusively. 0 means no intensity, and 1 means full intensity.
Collapse/Expand Example
The following example gets the first color value from the "color" field of a Color node and prints it to the console:
C#
Vrml.EAI.Node color = ...;
Vrml.EAI.Field.EventOutMFColor color_changed = (Vrml.EAI.Field.EventOutMFColor)color.GetEventOut("color_changed");
float[] c = color_changed.Get1Value(0);
System.Console.WriteLine("red = " + c[0] + ", green = " + c[1] + ", blue = " + c[2]);