LambdaHack-0.5.0.0: A game engine library for roguelike dungeon crawlers

Safe HaskellSafe-Inferred
LanguageHaskell2010

Game.LambdaHack.Common.Color

Contents

Description

Colours and text attributes.

Synopsis

Colours

data Color Source

Colours supported by the major frontends.

defBG :: Color Source

The default colours, to optimize attribute setting.

defFG :: Color Source

The default colours, to optimize attribute setting.

isBright :: Color -> Bool Source

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 -> String Source

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 :: Attr Source

The default attribute, to optimize attribute setting.

data AttrChar Source

Constructors

AttrChar 

Fields

acAttr :: !Attr
 
acChar :: !Char