Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upFeature request: Graphics.Collage.RotateTo #443
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
evancz
May 11, 2016
Member
Sorry for a very slow response! All the Graphics.* modules now live in evancz/elm-graphics so this kind of stuff should be moved there.
Nonetheless, I don't think it's likely this would be added.
|
Sorry for a very slow response! All the Nonetheless, I don't think it's likely this would be added. |
evancz
closed this
May 11, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
MaciekChudek commentedNov 21, 2015
Currently rotate takes an offset. But often you know what absolute direction you want something pointing now and don't care about the direction it was pointing before, let alone the angular difference between them. Consequently, something like this would be useful:
rotateTo : Float -> Form -> Form
rotateTo t (Form_elm_builtin f) =
Form_elm_builtin { f | theta = t }