This is a simple spike showing how to rotate a div "by hand". It then takes the basic rotation example, and shows how to rotate each pixel of an image on a canvas.
Interactive breakdown of the maths: Desmos
Example of rotating an HTML div and image "by hand" (not using CSS)
HTMLNOASSERTION
This is a simple spike showing how to rotate a div "by hand". It then takes the basic rotation example, and shows how to rotate each pixel of an image on a canvas.
Interactive breakdown of the maths: Desmos