The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



ColorMid


Unit: SDL_plot3d
Class: TPlot3D
Declaration: property ColorMid: TColor;

The property ColorMid determines the color used for medium z-values around (ColorScaleHigh +ColorScaleLow) div 2. Z-values below the middle value are displayed using colors interpolated towards ColorLow, colors for z-values above are interpolated towards ColorHigh.

Hint 1: ColorMid is only used if ColorCodingMode is set to ccmThreeColors.

Hint 2: Due to a bug in Delphi 2005 (.NET only) the surface cannot be colored using a color gradient. The color of the surface is fixed and corresponds to the color defined by the property ColorHigh. This bug occurs only under the .NET environment, under Win32 the color gradient is rendered as expected.

As of January 2005, there is no known work-around for this bug. If you need to display colored surfaces, you have to use Win32.


Example: This property is used in the following example program (see http://www.lohninger.com/examples.html for downloading the code): interpol3d, plotit3d


Last Update: 2013-Mar-24