Method scmap1
| Improve this Doc View Sourcescmap1(Int32[], Int32[], Int32[])
plscmap1: Set opaque RGB cmap1 colors values
Declaration
public void scmap1(Int32[] r, Int32[] g, Int32[] b)
Parameters
Type | Name | Description |
---|---|---|
Int32[] | r | A vector that represents (using unsigned 8-bit integers in the range from 0-255) the degree of red in the color as a continuous function of the integer index of the vector. |
Int32[] | g | A vector that represents (using unsigned 8-bit integers in the range from 0-255) the degree of green in the color as a continuous function of the integer index of the vector. |
Int32[] | b | A vector that represents (using unsigned 8-bit integers in the range from 0-255) the degree of blue in the color as a continuous function of the integer index of the vector. |
Remarks
Set opaque cmap1 colors (see ) using RGB vector values. This function also sets the number of cmap1 colors. N.B. Continuous cmap1 colors are indexed with a floating-point index in the range from 0.0-1.0 which is linearly transformed (e.g., by plcol1) to an integer index of these RGB vectors in the range from 0 to ncol1-1. So in order for this continuous color model to work properly, it is the responsibility of the user of plscmap1 to insure that these RGB vectors are continuous functions of their integer indices.