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 void Get1Value (
        int index,
        float[] value
) 
Parameters
index
The index of the element, starting at 0
value
An array of at least three float values that gets filled with the color components. The first value gets filled with the red color component, the second value with the green component, and the third value with 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 = new float[3];
color_changed.Get1Value(0, c);
System.Console.WriteLine("red = " + c[0] + ", green = " + c[1] + ", blue = " + c[2]);