License | MIT |
---|---|
Maintainer | Alexander Isenko <alex.isenko@googlemail.com> |
Safe Haskell | Safe |
Language | Haskell2010 |
Format.Raw
exports the pretty prints the array of rgb values to 16 in a row
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 "