Colors can be defined as a ol.Color array, or as strings in rgb(r,g,b) or rgba(r,g,b,a) format, or in hex #rrggbb or #rgb format. Color names, like 'red', 'blue' or 'green', may also be used with the Canvas renderer. Methods ol.color.asArray(color){ol.Color} experimental src/ol/color/color.js, line 101 Name Type Description color ol.Color | string Color. Returns: Color. ol.color.asString(color){string} experimental src/ol/color/color.js, line 116 Name Type Description color ol.Color | string Color. Returns: Rgba string.