Support for rotated gradients

Somewhat buggy still...