lighthouse-client-0.2.0.0: Project Lighthouse client SDK
Safe HaskellSafe-Inferred
LanguageHaskell2010

Lighthouse.Display

Synopsis

Constants

lighthouseRows :: Int Source #

The lighthouse's height in pixels.

lighthouseCols :: Int Source #

The lighthouse's width in pixels.

Display

newtype Display Source #

Constructors

Display [Row] 

Instances

Instances details
Show Display Source # 
Instance details

Defined in Lighthouse.Display

Eq Display Source # 
Instance details

Defined in Lighthouse.Display

Methods

(==) :: Display -> Display -> Bool #

(/=) :: Display -> Display -> Bool #

MPSerializable Display Source # 
Instance details

Defined in Lighthouse.Protocol

Methods

mpSerialize :: Display -> Object Source #

Serializable Display Source #

Converts a display to a binary representation.

Instance details

Defined in Lighthouse.Display

Random Display Source # 
Instance details

Defined in Lighthouse.Display

Methods

randomR :: RandomGen g => (Display, Display) -> g -> (Display, g)

random :: RandomGen g => g -> (Display, g)

randomRs :: RandomGen g => (Display, Display) -> g -> [Display]

randoms :: RandomGen g => g -> [Display]

newtype Row Source #

A representation of the lighthouse's pixels.

Constructors

Row [Color] 

Instances

Instances details
Show Row Source # 
Instance details

Defined in Lighthouse.Display

Methods

showsPrec :: Int -> Row -> ShowS #

show :: Row -> String #

showList :: [Row] -> ShowS #

Eq Row Source # 
Instance details

Defined in Lighthouse.Display

Methods

(==) :: Row -> Row -> Bool #

(/=) :: Row -> Row -> Bool #

Serializable Row Source # 
Instance details

Defined in Lighthouse.Display

Random Row Source # 
Instance details

Defined in Lighthouse.Display

Methods

randomR :: RandomGen g => (Row, Row) -> g -> (Row, g)

random :: RandomGen g => g -> (Row, g)

randomRs :: RandomGen g => (Row, Row) -> g -> [Row]

randoms :: RandomGen g => g -> [Row]

emptyDisplay :: Display Source #

A black display.

coloredDisplay :: Color -> Display Source #

A display with a uniformly colored background.

generateDisplay :: (Int -> Int -> Color) -> Display Source #

Generates a display from the given function.