Base class for color models that return a color from a data value using an interpolation between two extremum colors.
| Parameter | Type | Description |
|---|---|---|
| startColor | dojo/_base/Color | The start color. |
| endColor | dojo/_base/Color |
Optional The end color. |
See the dojox/color/SimpleColorModel reference documentation for more information.
| Parameter | Type | Description |
|---|---|---|
| from | undefined | |
| to | undefined | |
| value | undefined |
return the color for a given data value.
| Parameter | Type | Description |
|---|---|---|
| value | Number | The data value. |
Return the normalized (between 0 and 1) value for a given data value. This function must be implemented by implementations.
| Parameter | Type | Description |
|---|---|---|
| value | Number | The data value. |