Skip to content

transform order ignored #23

@Vekkq

Description

@Vekkq

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions