ColorScale_GetColorsΒΆ

ColorScale_GetColors returns a matrix with colors.

rmColors = ColorScale_GetColors(ssColorScaleName, nColors)

Return Value

rmColors is a real matrix with three columns.

Value Meaning
rmColors[1;] Red (0 to 255)
rmColors[2;] Green (0 to 255)
rmColors[3;] Blue (0 to 255)

Parameters

ssColorScaleName

Is one of the following names: Accent, Blues, BrBG, BuGn, BuPu, Dark2, GnBu, Greens, Greys, OrRd, Oranges, PRGn, Paired, Pastel1, Pastel2, PiYG, PuBu, PuBuGn, PuOr, PuRd, Purples, RdBu, RdGy, RdPu, RdYlBu, RdYlGn, Reds, Set1, Set2, Set3, Spectral, YlGn, YlGnBu, YlOrBr, YlOrRd

../../_images/colormaplist.png
nColors

Sets the number of colors in the return value.

id-970650