Gimp.Palette.get_colors
@accepts(Gimp.Palette, int)
@returns([Gimp.RGB])
def get_colors(self, num_colors):
# Python wrapper for gimp_palette_get_colors()
Gets colors in the palette.
Returns an array of colors in the palette.
Since 2.6
- self
The palette.
- num_colors
Length of the colors array.
- Returns