def to_rgba(val):
if pimms.is_npmatrix(val) and val.shape[<NUM_LIT:1>] == <NUM_LIT:4>: return val<EOL>try: return np.asarray(matplotlib.colors.to_rgba(val))<EOL>except Exception: return np.asarray([matplotlib.colors.to_rgba(u) for u in val])<EOL>
to_rgba(val) is identical to matplotlib.colors.to_rgba(val) except that it operates over lists
  as well as individual elements to yield matrices of rgba values. In addition, it always yields
  numpy vectors or matrices.