canvas rotation with origin support, expressed in radians or degrees