Update 6/27/26: LMESI3 has been rebranded to MICE and the thumbnail image has been changed to the TurboWarp dango. This is an encoder and decoder demo for MICE, an image compression format I created that you can embed into your Scratch projects via the custom blocks in this project's only sprite. Credit is optional. This demo takes raw RGBA32 input data, encodes it, outputs the encoded image, and draws the decoded result. To get some input data, scan an image at https://scratch.mit.edu/projects/1331348522/. SPECIFICATION Magenta Image Compression Encoding This format can store 12 bit RGB images or 16 bit RGBA images, with widths ranging from 1-2048, and heights of 1 and up. This makes it suitable for a wide range of images, including icons and photographs. It also has a simple non-computationally expensive format, which is stored entirely in hexadecimal characters: 3 chars: Width and channels. This has a range of 0-4095. 0-2047 is used to indicate that it is an RGB image and 2048-4095 is used for RGBA images. The formula to get the width from this number is mod(x, 2048) + 1. Repeating until end of image: 3 or 4 chars: Color. Each channel gets 1 char, so 4 bits or 16 different values a channel. 1 char: Repeat. To simplify graphics or photos with a lot of a certain color, this is used to repeat the color an amount of additional times. For example, if this value was F, instead of the color being decoded as just one color, it would be 16 of the same color instead. UNLICENSE: This is free and unencumbered software released into the public domain. Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means. In jurisdictions that recognize copyright laws, the author or authors of this software dedicate any and all copyright interest in the software to the public domain. We make this dedication for the benefit of the public at large and to the detriment of our heirs and successors. We intend this dedication to be an overt act of relinquishment in perpetuity of all present and future rights to this software under copyright law. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. For more information, please refer to <http://unlicense.org/>