LambdaHack-0.2.10.5: A roguelike game engine in early and active development

Safe HaskellSafe-Inferred

Game.LambdaHack.Common.Color

Contents

Description

Colours and text attributes.

Synopsis

Colours

data Color Source

Colours supported by the major frontends.

defBG :: ColorSource

The default colours, to optimize attribute setting.

defFG :: ColorSource

The default colours, to optimize attribute setting.

isBright :: Color -> BoolSource

A helper for the terminal frontends that display bright via bold.

legalBG :: [Color]Source

Due to the limitation of the curses library used in the curses frontend, only these are legal backgrounds.

darkCol :: [Color]Source

Colour sets.

brightCol :: [Color]Source

Colour sets.

stdCol :: [Color]Source

Colour sets.

colorToRGB :: Color -> StringSource

Translationg to heavily modified Linux console color RGB values.

Text attributes and the screen

data Attr Source

Text attributes: foreground and backgroud colors.

Constructors

Attr 

Fields

fg :: !Color

foreground colour

bg :: !Color

backgroud color

Instances

defAttr :: AttrSource

The default attribute, to optimize attribute setting.

data AttrChar Source

Constructors

AttrChar 

Fields

acAttr :: !Attr
 
acChar :: !Char