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 nanosecond timing precision mode.

Click here to see the documentation for this object in millisecond 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