An elm package for performing geometric transformations on points
The following 2D transformations are supported:
API documentation can be found on elm-packages
To rotate a any shape (list of points) by an angle around the origin:
rotateShape : Float -> List Point -> List Point rotateShape angle points = let transform = rotate Clockwise angle |> apply in List.map transform points
More complicated transforms can be created by using combine as demonstrated in the working example.
This package was used to animate the Elm logo as part of the elm-webpack-seed
The following elm packages have similar functionality: