SetColorOfComponent (inline)

...

Syntax

public const string enginedll = @"engine.dll";

public static void SetColorOfComponent(Int64 owlInstanceColorComponent, UInt32 color)
        {
            System.Diagnostics.Debug.Assert(IsInstanceOfClass(owlInstanceColorComponent, "ColorComponent"));

            Int64 model = GetModel(owlInstanceColorComponent);

            string[] rgbwNames = { "R", "G", "B", "W" };
            double[] rgbwValues = RDF.COLOR.GET_COMPONENTS(color);

            for (int i = 0; i < 4; i++)
            {
                SetDatatypeProperty(owlInstanceColorComponent, GetPropertyByName(model, rgbwNames[i]), rgbwValues[i]);
            }
        }    

Property owlInstanceColorComponent

Size: 64 bit / 8 byte (value)
The handle of the Color Component instance.

Property color

Size: 32 bit / 4 byte (value)
The color as 32 bit integer representing R, G, B, W values per 8 bits.