Halogen integration for Hylograph force simulations.
Provides utilities for integrating Hylograph force simulations with Halogen applications, including event emitters that work with Halogen's subscription system.
spago install hylograph-simulation-halogenimport Hylograph.ForceEngine.Halogen (toHalogenEmitter)
handleAction Initialize = do
{ handle, events } <- liftEffect $ runSimulation config
halogenEmitter <- liftEffect $ toHalogenEmitter events
void $ H.subscribe $ halogenEmitter <#> SimEvent
handleAction (SimEvent (Tick { alpha })) =
H.modify_ _ { alpha = alpha }Hylograph.ForceEngine.Halogen- Halogen emitter adapter
- hylograph-simulation-halogen - Halogen integration (this package)
- hylograph-simulation - Core simulation API
- hylograph-d3-kernel - D3 physics engine
MIT