Method CompareAverageColorRGB
Compare Average Color RGBUsage
Parameters
RGBValues
Type: Object
RGB Values (array of three integers representing RGB values)
Precision (optional)
Type: Integer
Default value: 85
Precision
Returns
True if colors are equal relating to precision; otherwise, false
Example
VBScript
Application("Demo").View("DemoView").Object("DemoObject").CompareAverageColorRGB(array(123, 77, 77))
'Change precision
Application("Demo").View("DemoView").Object("DemoObject").CompareAverageColorRGB(array(123, 77, 77), 90)
JavaScript
Application("Demo").View("DemoView").Object("DemoObject").CompareAverageColorRGB([123, 77, 77]);
// Change precision
Application("Demo").View("DemoView").Object("DemoObject").CompareAverageColorRGB([123, 77, 77], 90);