DatToPos
DatToPos converts a data value to a position (0.0 to 1.0). Returns a double.
Syntax
object.DatToPos( Dat )
Parameter |
Type |
Required/ Optional |
Default |
Description |
Dat |
Double |
Required |
This specifies the data value to be converted. |
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 convert the value of 80 to its proportional position on the specified color spectrum.
ColorMap.DatToPos(Dat:=80)
Used by: ColorMap object