# Gimp.ColorArray

A boxed type which is nothing more than an alias to a null-terminated array of [class@Gegl.Color].

The code fragments in the following example show the use of a property of type %GIMP_TYPE_COLOR_ARRAY with g_object_class_install_property(), g_object_set() and g_object_get().

```C g_object_class_install_property (object_class, PROP_COLORS, g_param_spec_boxed ("colors", _("Colors"), _("List of colors"), GIMP_TYPE_COLOR_ARRAY, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));

GeglColor *colors[] = { gegl_color_new ("red"), gegl_color_new ("blue"), NULL };

g_object_set (obj, "colors", colors, NULL);

GeglColors **colors;

g_object_get (obj, "colors", &colors, NULL); gimp_color_array_free (colors); ```