PosToDat

PosToDat converts a color spectrum position (0.0 to 1.0) to a data value. Returns a double.

Syntax

object.PosToDat( Pos )

Parameter

Type

Required/

Optional

Default

Description

Pos

Double

Required

This provides the color spectrum position.

Remarks

Data values are used to assign colors in the Colormap Editor but the data position is recorded as a value from 0.0 to 1.0.

Example

This example demonstrates how to return the conversion of position 0.73 (73 percent) to its proportional data value on the specified color spectrum.

Debug.Print ColorMap.PosToDat(Pos:=0.73)

Used by: ColorMap object