Methods |
---|
new ColorMap()
ColorMap Input
- Source:
Methods
setSteps(steps, maximum)
Setup the pallete density, the value is trimmed with a cap of MAX_SAMPLES
Parameters:
Name | Type | Description |
---|---|---|
steps |
number | Array.<number> | amount of sampling steps number: input number of colors to use array: put number of colors + 1 values, example: for three color pallete, put 4 numbers: 2 separators and 2 bounds (min, max value) |
maximum |
max number of steps available, should not be greater than this.MAX_SAMPLES unless you know you can modify that value |