Safe Haskell | None |
---|---|
Language | Haskell98 |
Extras.Stamp
Description
A stateful track
Synopsis
- data StampTrack a
- render :: (StampTrack a -> StampTrack Picture) -> Picture
- position :: StampTrack a -> Point
- orientation :: StampTrack a -> Number
- placement :: StampTrack a -> (Number, Number, Number)
- trace :: StampTrack a -> [a]
- atPositions :: (Number -> Picture) -> [(Number, Number)] -> Picture
- atPlacements :: (Number -> Picture) -> [(Number, Number, Number)] -> Picture
- sprite :: p1 -> p2 -> p1
- sprites :: [a] -> Number -> a
- start :: (Number, Number) -> StampTrack a
- stop :: StampTrack a -> [a]
- stamp :: Picture -> StampTrack Picture -> StampTrack Picture
- save :: (StampTrack a -> a) -> StampTrack a -> StampTrack a
- stampRight :: Number -> StampTrack a -> StampTrack a
- stampLeft :: Number -> StampTrack a -> StampTrack a
- stampUp :: Number -> StampTrack a -> StampTrack a
- stampDown :: Number -> StampTrack a -> StampTrack a
- turn :: Number -> StampTrack a -> StampTrack a
Documentation
Track API
To use the extra features in this module, you must begin your code with this line:
import Extras.Stamp
data StampTrack a #
render :: (StampTrack a -> StampTrack Picture) -> Picture #
position :: StampTrack a -> Point #
orientation :: StampTrack a -> Number #
trace :: StampTrack a -> [a] #
start :: (Number, Number) -> StampTrack a #
stop :: StampTrack a -> [a] #
stamp :: Picture -> StampTrack Picture -> StampTrack Picture #
save :: (StampTrack a -> a) -> StampTrack a -> StampTrack a #
stampRight :: Number -> StampTrack a -> StampTrack a #
stampLeft :: Number -> StampTrack a -> StampTrack a #
stampUp :: Number -> StampTrack a -> StampTrack a #
stampDown :: Number -> StampTrack a -> StampTrack a #
turn :: Number -> StampTrack a -> StampTrack a #