How to make gradient-color or image background?

How to make gradient-color or image background?
In some CAD applications, they use gradient background, such as Catia V5, Unigraphics V18. How they programmed? If some one knew please contack me via my e-mail kritsana@msn.com thenks.