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} experimentalsrc/ol/color/color.js, line 103
- 
    
    
    Return the color as an array. This function maintains a cache of calculated arrays which means the result should not be modified. Name Type Description colorol.Color | string Color. Returns:Color.
 
- 
    ol.color.asString(color){string} experimentalsrc/ol/color/color.js, line 119
- 
    
    
    Return the color as an rgba string. Name Type Description colorol.Color | string Color. Returns:Rgba string.
 
 OpenLayers 3
 OpenLayers 3