ColorSelection.paletteFromString

bool paletteFromString(string str, out gdk.color.Color[] colors)

Parses a color palette string; the string is a colon-separated list of color names readable by [gdk.color.Color.parse].

Parameters

stra string encoding a color palette
colorsreturn location for allocated array of #GdkColor

Returns

true if a palette was successfully parsed