Sets one element of the MFColor event-in slot.
Declaring type: EventInMFColor
Namespace: Vrml.EAI.Field
Assembly: VrmlEAI.NET
Collapse/Expand Syntax
C#
public abstract void Set1Value (
        int index,
        float[] value
) 
Parameters
index
The index of the element, starting at 0.
value
The new color value. This is an array of at least three float values. The first value is the red component of the color, the second value the green component, and the third value the blue component. Each component must be between 0 and 1, inclusively. 0 means no intensity, and 1 means full intensity.
Collapse/Expand Example
The following example demonstrates how to write a color (red) into the first element of the "color" field of a Color node:
C#
Vrml.EAI.Node color = ...;
Vrml.EAI.Field.EventInMFColor set_color = (Vrml.EAI.Field.EventInMFColor)color.GetEventIn("set_color");
float[] c = new float[] { 1.0f, 0.0f, 0.0f }; // red color
set_color.Set1Value(0, c);