Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

transform order ignored #23

Open
Vekkq opened this issue Jul 10, 2021 · 0 comments
Open

transform order ignored #23

Vekkq opened this issue Jul 10, 2021 · 0 comments

Comments

@Vekkq
Copy link

Vekkq commented Jul 10, 2021

Hi! I noticed, that the transformation order is ignored and always defaulting to the order translate-rotate-scale. But transformations are not commutative, leading to different results depending on order, so they should not be sorted.

Example:

module Main exposing (..)
import Playground exposing (..)

main = animation view

view t = [ball t, ball2 t, ball3 t]

ball  t =        circle green 6 |> rotate (spin 3 t) |> moveRight 40
ball2 t =        circle red 6   |> moveRight 40      |> rotate (spin 3 t)
ball3 t = group [circle blue 6  |> moveRight 40]     |> rotate (spin 3 t)

-- Ball 2 is supposed to work like ball 3,
--  but is behaving like ball 1, covering the same place.
-- Ball 3 is a workaround using groups.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant