function asArray(color) {
  if (Array.isArray(color)) {
    return color;
  }
  return fromString(color);
}
Return the color as an array. This function maintains a cache of calculated
arrays which means the result should not be modified.
@param {Color|string} color Color.
@return {Color} Color.
@api