ColorUtilities.ConvertToGrayscale(Variable) Method

Top 

Description

Gets the grayscale of the specified color using the formula: 0.30 * R + 0.59 * G + 0.11 * B.

 

Timing Precision Mode

This page describes functionality in millisecond timing precision mode. Millisecond timing precision mode is deprecated and will be removed in a future release. We recommend that you migrate your Mission Plans to nanosecond timing precision mode.

Click here to see the documentation for this object in nanosecond timing precision mode.

 

Method Signature

ColorUtilities.ConvertToGrayscale(

Variable color)

 

 

Arguments

color


Description:

Variable color.

 

 

 

Return Value

Type:

number

 

 

Returns a grayscale color of the specified color.

 

Syntax

myVariable1 = ColorTools.ConvertToGrayscale(myVariable2);

 

 

See also

ColorUtilities Object

Color Reference