@@ -26,39 +26,39 @@ main = runAccess_ $ do
2626 spawn $
2727 bundle (Rectangle 100 80 )
2828 <> bundle (transform2d {transformTranslation = V2 200 150 } :: Transform2D )
29- <> bundle (Color 1 0 0 1 )
29+ <> bundle (color 1 0 0 1 )
3030 <> bundle (Parent windowEntity)
3131
3232 -- Spawn a green circle
3333 _ <-
3434 spawn $
3535 bundle (Circle 50 32 )
3636 <> bundle (transform2d {transformTranslation = V2 400 300 } :: Transform2D )
37- <> bundle (Color 0 1 0 1 )
37+ <> bundle (color 0 1 0 1 )
3838 <> bundle (Parent windowEntity)
3939
4040 -- Spawn a blue triangle
4141 _ <-
4242 spawn $
4343 bundle (Triangle (- 40 ) 40 40 40 0 (- 40 ))
4444 <> bundle (transform2d {transformTranslation = V2 600 200 } :: Transform2D )
45- <> bundle (Color 0 0 1 1 )
45+ <> bundle (color 0 0 1 1 )
4646 <> bundle (Parent windowEntity)
4747
4848 -- Spawn a yellow rectangle (rotated)
4949 _ <-
5050 spawn $
5151 bundle (Rectangle 60 60 )
5252 <> bundle (transform2d {transformTranslation = V2 300 450 , transformRotation = 45 } :: Transform2D )
53- <> bundle (Color 1 1 0 1 )
53+ <> bundle (color 1 1 0 1 )
5454 <> bundle (Parent windowEntity)
5555
5656 -- Spawn a magenta circle (scaled)
5757 _ <-
5858 spawn $
5959 bundle (Circle 30 24 )
6060 <> bundle (transform2d {transformTranslation = V2 550 450 , transformScale = V2 1.5 1.5 } :: Transform2D )
61- <> bundle (Color 1 0 1 1 )
61+ <> bundle (color 1 0 1 1 )
6262 <> bundle (Parent windowEntity)
6363
6464 runAccessGLFW $ do
0 commit comments