Copyright | Brent Yorgey |
---|---|
License | BSD-3-Clause |
Maintainer | byorgey@gmail.com |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Rendering attributes (i.e. foreground and background colors, styles, etc.) used by the Swarm TUI.
We export constants only for those we use in the Haskell code and not those used in the world map, to avoid abusing attributes. For example using the robot attribute to highlight some text.
The few attributes that we use for drawing the logo are an exception.
Synopsis
- swarmAttrMap :: AttrMap
- worldAttributes :: [(AttrName, Attr)]
- worldPrefix :: AttrName
- dirtAttr :: AttrName
- grassAttr :: AttrName
- stoneAttr :: AttrName
- waterAttr :: AttrName
- iceAttr :: AttrName
- entityAttr :: AttrName
- robotAttr :: AttrName
- rockAttr :: AttrName
- plantAttr :: AttrName
- highlightAttr :: AttrName
- notifAttr :: AttrName
- infoAttr :: AttrName
- boldAttr :: AttrName
- dimAttr :: AttrName
- magentaAttr :: AttrName
- cyanAttr :: AttrName
- lightCyanAttr :: AttrName
- yellowAttr :: AttrName
- blueAttr :: AttrName
- greenAttr :: AttrName
- redAttr :: AttrName
- defAttr :: AttrName
Documentation
swarmAttrMap :: AttrMap Source #
A mapping from the defined attribute names to TUI attributes.
worldAttributes :: [(AttrName, Attr)] Source #
Colors of entities in the world.
Also used to color messages, so water is special and excluded.
Terrain attributes
Common attributes
Swarm TUI Attributes
highlightAttr :: AttrName Source #
Some defined attribute names used in the Swarm TUI.
magentaAttr :: AttrName Source #
Some basic colors used in TUI.
lightCyanAttr :: AttrName Source #
Some basic colors used in TUI.
yellowAttr :: AttrName Source #
Some basic colors used in TUI.