Do you mean make the desktop fade to black?

Well, you could use the API to grab the desktop and display it, then buggerize (that's the technical term ) with the pallatte!