Skip to content

Instantly share code, notes, and snippets.

@chribben
Created August 11, 2013 21:16
Show Gist options
  • Save chribben/6206884 to your computer and use it in GitHub Desktop.
Save chribben/6206884 to your computer and use it in GitHub Desktop.
Reactive circle
import Signal
import Mouse
cl = (clamp 100 200) <~ Mouse.x
reactiveCircle = (filled blue) <~ (circle <~ (toFloat <~ cl))
main = lift (collage 300 300) (Signal.combine [reactiveCircle])
@chribben
Copy link
Author

There must be a nicer way to express this #elm_noob

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment