NodePositions Property

 

The NodePositions property returns the color spectrum node positions (0.0 to 1.0). Returns an array of doubles.

 

Syntax

Object.NodePositions

 

Example

This example demonstrates how to return the color spectrum node positions. The first two statements create an array of doubles named NodePositions then store the node positions of the color spectrum within the array. The remaining statements allow all the node positions of any color spectrum to be returned.

 

Dim NodePositions() As Double

Set NodePositions() = ColorMap.NodePositions

 

Dim FirstNode As Integer

FirstNode = LBound(NodePositions)

Dim LastNode As Integer

LastNode = UBound(NodePositions)

Dim NodeNumber as Integer

For NodeNumber = FirstNode to LastNode step 1

 Debug.Print NodePositions(NodeNumber)

Next NodeNumber

 

Used by ColorSpectrum object