Created
June 1, 2013 14:01
-
-
Save dcalacci/5690490 to your computer and use it in GitHub Desktop.
ball follows the mouse around
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Mouse | |
import Window | |
scene (x,y) (w,h) = | |
collage w h | |
[ | |
circle 10 |> filled blue | |
|> move (x - toFloat w / 2, toFloat h / 2 - y) | |
] | |
main = scene <~ Mouse.position ~ Window.dimensions |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment