Skip to main content

Crate pico8_decompress

Crate pico8_decompress 

Source
Expand description

§Pico-8 Decompress

Pico-8 decompress routines for Rust ported from Dan Sanderson’s official C snippets that were written by Joseph White.

§Example

This library also includes the pico8-png command line tool.

$ pico8-png hello-cart.p8.png; # OR cargo run hello-cart.p8.png
print("hello world")

§License

This project is licensed under the MIT license.

Modules§

p8
P8 decompression
pxa
PXA decompression

Enums§

Error
Errors

Functions§

decompress
Decompress bytes using header to determine if it is PXA or P8 compression.
extract_bits
Extract the two least significant bits from PNG RGBA frame data.
extract_bits_from_png
Extract two least significant bits from PNG file contents directly.