Module
Hylograph.Transition.Example
- Package
- purescript-hylograph-simulation
- Repository
- afcondon/purescript-hylograph-simulation
Coordinator Example
A simple example showing how to use the TickCoordinator with multiple transitions running simultaneously.
This module is for demonstration and testing purposes.
#runExample Source
runExample :: Effect UnitRun a simple example with two transitions:
- Opacity: 0 → 1 over 500ms
- Radius: 5 → 20 over 1000ms
The opacity transition will complete first, then radius.
#exampleWithCallback Source
exampleWithCallback :: ({ opacity :: Number, x :: Number, y :: Number } -> Effect Unit) -> Effect { coordinator :: Coordinator, stop :: Effect Unit }Run an example with a transition group (x, y, opacity together). Calls the provided callback with current values each frame.
- Modules
- Hylograph.
Config. Apply - Hylograph.
Config. Force - Hylograph.
Config. Scene - Hylograph.
ForceEngine - Hylograph.
ForceEngine. Core - Hylograph.
ForceEngine. Demo - Hylograph.
ForceEngine. Events - Hylograph.
ForceEngine. Links - Hylograph.
ForceEngine. Registry - Hylograph.
ForceEngine. Render - Hylograph.
ForceEngine. Setup - Hylograph.
ForceEngine. Setup. WASM - Hylograph.
ForceEngine. Simulation - Hylograph.
ForceEngine. Types - Hylograph.
ForceEngine. WASM - Hylograph.
ForceEngine. WASMEngine - Hylograph.
Scene. Engine - Hylograph.
Scene. Handle - Hylograph.
Scene. Rules - Hylograph.
Scene. Types - Hylograph.
Simulation - Hylograph.
Simulation. Emitter - Hylograph.
Simulation. HATS - Hylograph.
Simulation. Scene - Hylograph.
Transition. Consumers - Hylograph.
Transition. Example