ColorMapColors, ColorMapValues Properties
Syntax
CWPlot3D.ColorMapColors
CWPlot3D.ColorMapValues
Data Type
Purpose
Specifies a custom color map when used with the ColorMapValues property. Each element in the value vector and its corresponding element in the color vector are a value-color pair in the color map.
Remarks
To specify a custom color map with ColorMapValues and ColorMapColors, first set ColorMapStyle to cwCustom. The ColorMapColors and ColorMapValues vectors must have at least two elements, and the ColorMapValues must have no duplicates and be sorted in increasing value.
Example
Dim values(1 To 3)
Dim colors(1 To 3)
values(1) = 0.0
values(2) = 0.5
values(3) = 1.0
colors(1) = vbRed
colors(2) = vbGreen
colors(3) = vbBlue
CWGraph3D1.Plots(1).ColorMapStyle = cwCustom
CWGraph3D1.Plots(1).ColorMapValues = values
CWGraph3D1.Plots(1).ColorMapColors = colors