Added rotate() and gradient() feature.

Added rotate and gradient feature.