ColorRange Constructor
Initializes a new instance of the
ColorRange class.
create new color range for legends of numerical values.
Namespace: Karamba.UtilitiesAssembly: KarambaCommon (in KarambaCommon.dll) Version: 3.0.8.0+eb23a7103f0eca0b6d808121e15fec6899194e15
public ColorRange(
double min_val,
double max_val,
bool zero_centered,
List<Color> base_colors,
int NumberOfDisplayColors = 100
)
Public Sub New (
min_val As Double,
max_val As Double,
zero_centered As Boolean,
base_colors As List(Of Color),
Optional NumberOfDisplayColors As Integer = 100
)
public:
ColorRange(
double min_val,
double max_val,
bool zero_centered,
List<Color>^ base_colors,
int NumberOfDisplayColors = 100
)
new :
min_val : float *
max_val : float *
zero_centered : bool *
base_colors : List<Color> *
?NumberOfDisplayColors : int
(* Defaults:
let _NumberOfDisplayColors = defaultArg NumberOfDisplayColors 100
*)
-> ColorRange
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.