Returns the current value of the SFColor event-out slot.
Declaring type: EventOutSFColor
Namespace: Vrml.EAI.Field
Assembly: VrmlEAI.NET
Collapse/Expand Syntax
C#
public abstract void GetValue (
        float[] value
) 
Parameters
value
An array of at least three float values whose first three elements get filled with the red, green and blue color component. A value of 0 means no intensity, and a value of one means full intensity.
Collapse/Expand Example
The following example demonstrates how to get the color of an object:
C#
Vrml.EAI.Node material = ...;
Vrml.EAI.Field.EventOutSFColor diffuseColor_changed = (Vrml.EAI.Field.EventOutSFColor)material.GetEventOut("diffuseColor_changed");
float[] color = new float[3];
diffuseColor_changed.GetValue(color);
System.Console.WriteLine("red = " + color[0] + ", green = " + color[1] + ", blue = " + color[2]);