Sets the value of the SFColor event-in slot.
Declaring type: EventInSFColor
Namespace: Vrml.EAI.Field
Assembly: VrmlEAI.NET
Collapse/Expand Syntax
C#
public abstract void SetValue (
        float[] value
) 
Parameters
value
The new color value. This is an array of at least three float values. The first value is the red color component, the second the green, and the third the blue. Each component must be between 0 (no intensity) and 1 (full intensity), inclusively.
Collapse/Expand Example
The following example demonstrates how to set the diffuseColor field of a Material node to red:
C#
Vrml.EAI.Node material = ...;
Vrml.EAI.Field.EventInSFColor set_diffuseColor = (Vrml.EAI.Field.EventInSFColor)material.GetEventIn("set_diffuseColor");
float red_component = 1.0f;
float green_component = 0.0f;
float blue_component = 0.0f;
float[] color = new float[] { red_component, green_component, blue_component };
set_diffuseColor.SetValue(color);