Skip to content

Instantly share code, notes, and snippets.

@zsennenga
Created December 23, 2018 09:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zsennenga/37bf9470f3f5349768f29d31fcc145aa to your computer and use it in GitHub Desktop.
Save zsennenga/37bf9470f3f5349768f29d31fcc145aa to your computer and use it in GitHub Desktop.
Struct(
"signature" / Const(b"MT\xbe\xef"),
"unknown_const_256" / Const(256, Int16ul) * "Probably part of the signature",
"header" / Int16ul[18]
"palette" / Array(
16,
Struct(
"R" / Int8ul,
"G" / Int8ul,
"B" / Int8ul,
)
) * "Identical to a standard bitmap palette, except for the order of the pixels",
"pixels" / GreedyRange(Int16ul)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment