rotate package:Rasterific

Create a transformation representing a rotation on the plane.
fill . transform (applyTransformation $ rotate 0.2)
$ rectangle (V2 40 40) 120 120
Create a transformation representing a rotation on the plane. The rotation center is given in parameter
fill . transform (applyTransformation $ rotateCenter 0.2 (V2 200 200))
$ rectangle (V2 40 40) 120 120