ee.Palette

Creates a palette.
Usage Returns
ee.Palette( colors , mode , min , max , padding , classes , positions , correctLightness , gamma , bezier ) Palette
Argument Type Details
colors
Object, default: null A list of colors or the name of a predefined color palette.
mode
String, default: "RGB" The colorspace in which to interpolate. One of 'rgb', 'lrgb', 'hsv', 'hsl', 'lab' or 'lch'.
min
Float, default: null The minimum value of the palette. Values less than min will be clamped to min.
max
Float, default: null The maximum value of the palette. Values greater than max will be clamped to max.
padding
List, default: null Shifts the color range by padding the end of the color scale (a percentage 0-1). Positive values reduce the spread of the gradient and negative values expand it. If only 1 value is provided, the same padding will be applied to both ends.
classes
List, default: null Create a palette representing discrete classes instead of a continuous gradient. Either a list of class break values, or a single number indicating the number of equidistant breaks to generate between 'min' and 'max'. This option is mutually exclusive with 'positions'.
positions
List, default: null Set the positions for the colors. The number of positions must exactly match the number of colors in the palette. Resets 'min' & 'max' to first and last value. This option is mutually exclusive with 'min'/'max' and 'classes'.
correctLightness
Boolean, default: false Correct the color spacing to spread the (Lab) lightness range evenly over the range of values.
gamma
Float, default: 1 A gamma correction for the palette. Numbers greater than 1 increase lightness.
bezier
Boolean, default: false Sets the palette to use Bezier interpolation.
Create a Mobile Website
View Site in Mobile | Classic
Share by: