2012-06-25 11:56:55 +00:00
|
|
|
|
|
|
|
-- Move your mouse around above the canvas!
|
|
|
|
|
|
|
|
myBlue = rgb 0 85 170
|
2013-03-02 15:24:43 +00:00
|
|
|
myGreen = rgba 28 267 85 0.5
|
2012-05-28 15:24:57 +00:00
|
|
|
|
|
|
|
scene (x,y) (w,h) =
|
2013-03-02 15:24:43 +00:00
|
|
|
collage w h
|
|
|
|
[ rotate (toFloat (x+y) / 1000) (filled myBlue (ngon 4 100 (200,200)))
|
|
|
|
, filled myGreen (ngon 5 30 (x,y))
|
|
|
|
]
|
2012-05-28 15:24:57 +00:00
|
|
|
|
2013-03-02 15:24:43 +00:00
|
|
|
main = lift2 scene Mouse.position Window.dimensions
|