element.rotate(deg, [absolute, origin, opt])
Rotate an element by
deg degrees around its center. If the optional
absolute parameter is
deg will be considered an absolute angle, not an addition to the previous angle.
origin is passed in the form of an object with
then this point will be used as the origin for the rotation transformation.