Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
WeekDaze.Colour.HTMLColourCode
Description
AUTHOR
- Dr. Alistair Ward
DESCRIPTION
- Exports some colour-manipulation functions for HTML.
Synopsis
- type HTMLColourCode = String
- htmlColourCodePrefix :: Char
- deriveComplementaryHTMLColourCode :: HTMLColourCode -> HTMLColourCode
- generateHTMLColourCodeFrom :: String -> HTMLColourCode
- readHex :: (Eq i, Num i) => String -> i
Types
Type-synonyms
type HTMLColourCode = String Source #
The representation in HTML of 24-bit colour.
Constants
htmlColourCodePrefix :: Char Source #
The prefix used when specifying an HTML colour-code.
Functions
deriveComplementaryHTMLColourCode :: HTMLColourCode -> HTMLColourCode Source #
Return the complement of the specified HTML colour-code.
generateHTMLColourCodeFrom :: String -> HTMLColourCode Source #
Generate an arbitrary HTML colour-code using a hash of the specified string.