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 float[] GetValue ()
Return Value
An array of three float values that contain 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 = diffuseColor_changed.GetValue();
System.Console.WriteLine("red = " + color[0] + ", green = " + color[1] + ", blue = " + color[2]);