2012-06-27 06:52:07 +00:00
|
|
|
|
|
|
|
-- Move your mouse around above the canvas!
|
|
|
|
|
2013-02-08 03:18:44 +00:00
|
|
|
import Mouse (position)
|
|
|
|
import Window (dimensions)
|
2012-06-27 06:52:07 +00:00
|
|
|
|
|
|
|
myBlue = rgb 0 85 170
|
|
|
|
myGreen = rgba 28 267 85 (1/2)
|
2012-05-29 21:47:31 +00:00
|
|
|
|
|
|
|
scene (x,y) (w,h) =
|
2013-02-08 03:18:44 +00:00
|
|
|
collage w h [ rotate (toFloat (x+y) / 1000) $ filled myBlue $ ngon 4 100 (200,200)
|
2012-06-27 06:52:07 +00:00
|
|
|
, filled myGreen $ ngon 5 30 (x,y)
|
2012-05-29 21:47:31 +00:00
|
|
|
]
|
|
|
|
|
2013-02-08 03:18:44 +00:00
|
|
|
main = lift2 scene Mouse.position Window.dimensions
|