? GS6 ● SmileBASIC Source

Sign In

Register
*Usernames are case-sensitive
Forgot my password

Migrating to a new website for SmileBASIC 4

GS6

Submitted
Updated
Author
MZ952
Public Key
CB7YS33J
Min. Compat.
All
Rating
1 vote
Description Weak noisy image compression. Works well for a smaller palette of colors or sparsely-populated noise. Two examples in the program show densly-packed, 8-color pixel noise (128x64 px) compressing to around 3.8k, while sparsely-packed (of same color & dimensions) pixel noise compresses to around 2k. The second listed value is the number of bytes needed to represent the image as a 4-bit-per-pixel bitmap, and the third listed value is the number of bytes needed for an equivalent GSAVE of the image. Fourth value is the fraction of bytes reduced by the compression, compared to the 4bpp bitmap. (Truncating the colors of the full sprite page to a palette size of 8 and compressing yields ~80k bytes.) Instructions GS6 offsetX,offsetY,width,height,pixels_per_block,color_palette[] GL6 offsetX,offsetY,inage_data[],copy_mode Explanation and how-to-use in the program.
Categories
Keywords
0 Comment(s)