UTFTConverter-0.1.0.1: Processing popular picture formats into .c or .raw format in RGB565

LicenseMIT
MaintainerAlexander Isenko <alex.isenko@googlemail.com>
Safe HaskellSafe
LanguageHaskell2010

Format.Raw

Description

Format.Raw exports the pretty prints the array of rgb values to 16 in a row

Synopsis

Documentation

toRawFile :: [String] -> String Source

toRawFile takes the hex strings and returns a concatinated string with a \n after every 16th hex number

Example usage:

λ> let hex = ["0000", "0000", "FF00", "00FF","0000", "0000", "FF00", "00FF", "0000", "0000", "FF00", "00FF", "0000", "0000", "FF00", "00FF", "0000"]
λ> toRawFile hex
"0000 0000 FF00 00FF 0000 0000 FF00 00FF 0000 0000 FF00 00FF 0000 0000 FF00 00FF \n 0000 "