ee.Palette.getColors

Get colors from this palette.

UsageReturns
Palette.getColors(nColors)List
ArgumentTypeDetails
this: palettePalette
nColorsInteger, default: 0The number of equally spaced colors to retrieve from the palette. If nColors is 0 or unspecified, the algorithm returns the entire list of colors used to construct the palette.