Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- lighthouseRows :: Int
- lighthouseCols :: Int
- newtype Display = Display [Row]
- newtype Row = Row [Color]
- emptyDisplay :: Display
- coloredDisplay :: Color -> Display
- generateDisplay :: (Int -> Int -> Color) -> Display
Constants
lighthouseRows :: Int Source #
The lighthouse's height in pixels.
lighthouseCols :: Int Source #
The lighthouse's width in pixels.
Display
Instances
Show Display Source # | |
Eq Display Source # | |
MPSerializable Display Source # | |
Defined in Lighthouse.Protocol mpSerialize :: Display -> Object Source # | |
Serializable Display Source # | Converts a display to a binary representation. |
Defined in Lighthouse.Display serialize :: Display -> ByteString Source # | |
Random Display Source # | |
A representation of the lighthouse's pixels.
emptyDisplay :: Display Source #
A black display.
coloredDisplay :: Color -> Display Source #
A display with a uniformly colored background.