@@ -4,7 +4,7 @@ module Graphics.Collage where
4import open Basics
4import open Basics
6import Either (Either, Left, Right)
6import Either (Either, Left, Right)
7−import Matrix2D (Matrix2D, identity)
7+import Transform2D (Transform2D, identity)
8import Native.Graphics.Collage
8import Native.Graphics.Collage
9import Graphics.Element (Element, Three, Pos, ElementPrim, Properties)
9import Graphics.Element (Element, Three, Pos, ElementPrim, Properties)
10import Color (Color, black, Gradient)
10import Color (Color, black, Gradient)
@@ -76,7 +76,7 @@ data BasicForm
76 | FShape (Either LineStyle FillStyle) Shape
76 | FShape (Either LineStyle FillStyle) Shape
77 | FImage Int Int (Int,Int) String
77 | FImage Int Int (Int,Int) String
78 | FElement Element
78 | FElement Element
79− | FGroup Matrix2D [Form]
79+ | FGroup Transform2D [Form]
81form : BasicForm -> Form
81form : BasicForm -> Form
82form f = { theta=0, scale=1, x=0, y=0, alpha=1, form=f }
82form f = { theta=0, scale=1, x=0, y=0, alpha=1, form=f }
@@ -122,7 +122,7 @@ group fs = form (FGroup identity fs)
123-- Flatten many forms into a single `Form` and then apply a matrix
123-- Flatten many forms into a single `Form` and then apply a matrix
124-- transformation.
124-- transformation.
125−groupTransform : Matrix2D -> [Form] -> Form
125+groupTransform : Transform2D -> [Form] -> Form
126groupTransform matrix fs = form (FGroup matrix fs)
126groupTransform matrix fs = form (FGroup matrix fs)
128-- Rotate a form by a given angle. Rotate takes standard Elm angles (radians)
128-- Rotate a form by a given angle. Rotate takes standard Elm angles (radians)