Is it possible to make gradient colored glass?

It’s probably not difficult.

Gradient

Material Function Reference