List of Signal Generators
Generate a random seed that updates 60 times per second. Note: The seed uses the current Unix time.
Generate a random seed that updates every given timestep.
Generate a signal from a random generator that updates 60 times per second.
Generate a signal from a random generator that updates every given number of milliseconds.
Generate a random run of an application that follows the Elm Architecture. Here, the Elm Architecture is interpreted as follows:
initialModel : model
actions : Signal action
update : action -> model -> model
view : model -> view -- where view is usually Element or Html
main =
Signal.map view
(Signal.foldp update initialModel actions)How to use:
applicationGenerator =
application initialModel actionGenerator update view
main =
generate applicationGeneratorCreate a running signal from an application that follows the Elm Architecture.
This is analogous to application and works better as it avoids issues with
Random.Extra.reduce.
How to use:
main =
run initialModel actionGenerator update view
Generates constant signals.