Installed

elm/browser
1.0.2
elm/core
1.0.5
elm/html
1.0.0
evancz/elm-playground
1.0.3

Registry

elm/http
2.0.0
elm/random
1.0.0
elm/time
1.0.0
elm/file
1.0.5
elm/json
1.1.3
elm/svg
1.0.1
elm-explorations/webgl
1.1.3
w0rm/elm-physics
5.1.3
rtfeldman/elm-css
18.0.0
mdgriffith/elm-ui
1.1.8
​x
 
1
-- Draw a cicle around the mouse. Change its color by pressing down.
2
--
3
-- Learn more about the playground here:
4
--   https://package.elm-lang.org/packages/evancz/elm-playground/latest/
5
--
6
​
7
import Playground exposing (..)
8
​
9
​
10
main =
11
  game view update ()
12
​
13
​
14
view computer memory =
15
  [ circle lightPurple 30
16
      |> moveX computer.mouse.x
17
      |> moveY computer.mouse.y
18
      |> fade (if computer.mouse.down then 0.2 else 1)
19
  ]
20
​
21
​
22
update computer memory =
23
  memory