@@ -21,7 +21,9 @@ data BasicForm
2121 | FElement Element
2222 | FGroup [Form]
2323
24−fill style shape = Form [] (FShape (Right style) shape)
24+ident = Matrix.identity
25+
26+fill style shape = Form ident (FShape (Right style) shape)
2527
2628filled : Color -> Shape -> Form
2729filled color shape = fill (Solid color) shape
@@ -33,18 +35,18 @@ gradient : Gradient -> Shape -> Form
3335gradient grad shape = fill (Gradient grad) shape
3436
3537outline : LineStyle -> Shape -> Form
36−outline style shape = Form [] (FShape (Left style) shape)
38+outline style shape = Form ident (FShape (Left style) shape)
3739
38−outline : LineStyle -> Path -> Form
39−trace style path = Form [] (FPath style path)
40+trace : LineStyle -> Path -> Form
41+trace style path = Form ident (FPath style path)
4042
4143sprite : Int -> Int -> (Int,Int) -> String -> Form
42−sprite w h pos src = Form [] (FImage w h pos src)
44+sprite w h pos src = Form ident (FImage w h pos src)
4345
4446toForm : Element -> Form
45−toForm e = Form [] (FElement e)
47+toForm e = Form ident (FElement e)
4648
47−group fs = Form [] (FGroup fs)
49+group fs = Form ident (FGroup fs)
4850
4951rotate t f = { form = f.form, transform = Matrix.rotate t f.transform }
5052scale s f = { form = f.form, transform = Matrix.scale s s f.transform }