Sets the elements of the MFColor event-in slot.
Declaring type: EventInMFColor
Namespace: Vrml.EAI.Field
Assembly: VrmlEAI.NET
Collapse/Expand Syntax
C#
public abstract void SetValue (
        float[][] value
) 
Parameters
value
The new color values. This is an array of float arrays that contain at least three 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 three colors (red, green and blue) into 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[3][];
c[0] = new float[] { 1.0f, 0.0f, 0.0f }; // red color
c[1] = new float[] { 0.0f, 1.0f, 0.0f }; // green color
c[2] = new float[] { 0.0f, 0.0f, 1.0f }; // blue color
set_color.SetValue(c);