ColorUtilities.InterpolateColorRGB(Array, Variable, Variable, Variable) Method

Top 

Description

Interpolates the colors given a designated weight. The weight is normalized based on the min/max values as (weight - min)/(max - min).

 

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.InterpolateColorRGB(

Array colors,


Variable weight,


Variable min,


Variable max)

 

 

Arguments

colors


Description:

Colors to perform the interpolation across.

Required Size:

At least 2

 

 

weight


Description:

The weight between the colors to be interpolated. The range is clamped internally to (0-1).

 

 

min


Description:

The minimum for normalizing the weight property.

 

 

max


Description:

The maximum for normalizing the weight property.

 

 

 

Return Value

Type:

number

 

 

A color value.

 

Syntax

myVariable1 = ColorTools.InterpolateColorRGB(myArray1, myVariable2, myVariable3, myVariable4);

 

 

See also

ColorUtilities Object

ColorUtilities.InterpolateColorRGB

Color Reference