ColorRange Constructor

Initializes a new instance of the ColorRange class. create new color range for legends of numerical values.

Definition

Namespace: Karamba.Utilities
Assembly: KarambaCommon (in KarambaCommon.dll) Version: 3.0.8.0+eb23a7103f0eca0b6d808121e15fec6899194e15
C#
public ColorRange(
	double min_val,
	double max_val,
	bool zero_centered,
	List<Color> base_colors,
	int NumberOfDisplayColors = 100
)

Parameters

min_val  Double
minimum value of number range.
max_val  Double
maximum value of number range.
zero_centered  Boolean
if true and zero is in the number range than the colors get centered around zero.
base_colors  ListColor
List of colors from which additional colors are interpolated.
NumberOfDisplayColors  Int32  (Optional)
Number of display colors in the number range.

See Also