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]); } }