Pike v8.0 release 1738

Method Colors.parse_color()


Method parse_color

array(int(8bit)) parse_color(string name, void|array(int) def)

Description

This function returns the RGB values that corresponds to the color that is provided by name to the function. It is essentially calling Image.Color.guess(), but returns the default value (or black if none is provided) if it failes.