Portability | GHC |
---|---|
Stability | highly unstable |
Maintainer | stephen.tetley@gmail.com |
Chaining moveable LocGraphics.
- data GenChain st u a
- type Chain u a = GenChain () u a
- type DChain a = Chain Double a
- data ChainScheme u = forall cst . ChainScheme {
- scheme_start :: Point2 u -> cst
- scheme_step :: Point2 u -> cst -> (Point2 u, cst)
- runChain :: InterpretUnit u => Chain u a -> ChainScheme u -> LocImage u a
- runChain_ :: InterpretUnit u => Chain u a -> ChainScheme u -> LocGraphic u
- cnext :: InterpretUnit u => LocImage u a -> GenChain st u a
- setChainScheme :: InterpretUnit u => ChainScheme u -> GenChain st u ()
- chainIterate :: (Point2 u -> Point2 u) -> ChainScheme u
- chainH :: Num u => u -> ChainScheme u
- chainV :: Num u => u -> ChainScheme u
- tableRight :: Num u => Int -> (u, u) -> ChainScheme u
- tableDown :: Num u => Int -> (u, u) -> ChainScheme u
- radialChain :: Floating u => u -> Radian -> Radian -> ChainScheme u
Documentation
Monad (GenChain st u) | |
Functor (GenChain st u) | |
Applicative (GenChain st u) | |
UserStateM (GenChain st u) | |
DrawingCtxM (GenChain st u) | |
Monoid a => Monoid (GenChain st u a) |
data ChainScheme u Source
scheme_start is a function from the origin to state.
For instance, we might want to cache the origin - this would
not be possible if start was just a pure cst
value.
forall cst . ChainScheme | |
|
runChain :: InterpretUnit u => Chain u a -> ChainScheme u -> LocImage u aSource
runChain_ :: InterpretUnit u => Chain u a -> ChainScheme u -> LocGraphic uSource
cnext :: InterpretUnit u => LocImage u a -> GenChain st u aSource
setChainScheme :: InterpretUnit u => ChainScheme u -> GenChain st u ()Source
chainIterate :: (Point2 u -> Point2 u) -> ChainScheme uSource
chainH :: Num u => u -> ChainScheme uSource
chainV :: Num u => u -> ChainScheme uSource
tableRight :: Num u => Int -> (u, u) -> ChainScheme uSource
tableDown :: Num u => Int -> (u, u) -> ChainScheme uSource
radialChain :: Floating u => u -> Radian -> Radian -> ChainScheme uSource