rgb, average, color, rgba, red, green, blue, comparison, compare

Method CompareAverageColorRGB

Compare Average Color RGB

Watch this video to learn how to use this method

Have a problem with playback?

Syntax

Function CompareAverageColorRGB( 
        Object RGBValues,
        Integer Precision [Optional]
)

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

Contact Us

Tower Place 100

3340 Peachtree Rd NE #1800 

Atlanta, GA 30326 USA

(404) 814-5227