OpenLayers v4.0.1 API - Namespace: colorlike

# Namespace: colorlike

This documentation is for OpenLayers v4.0.1. The latest is v.

## ol.colorlike

An `ol.ColorLike` can be a color, gradient or pattern accepted by CanvasRenderingContext2D.fillStyle.

### Methods

#### ol.colorlike.asColorLike(color){ol.ColorLike}

src/ol/colorlike.js, line 11

  Name | Type | Description
  --- | --- | ---
  `color` | ol.Color | ol.ColorLike | Color.

  ##### Returns:

  The color as an ol.ColorLike