An engine that converts a list of color values to a BMP image file that can be viewed in your web browser. Demo Descriptions: Random Colors - Creates a randomly-generated image of any size. Color Test - Creates a 256x4 image containing every color channel (red, green, blue, all) from 0-255. Useful for testing color accuracy after modifying the engine. Import Image Data - Import your image data into the "rawImageData" list (colors must be in integer format, not hexadecimal format) (click see inside, then right click on list to import). Can be used to see if this engine will work for your project. Run Speed Test - Generates random images of certain sizes 4 times, averages the times, then shows them to you. Engine Usage: Put the image data be in this "rawImageData" list, then call either "Create Bitmap Image" or "Create Bitmap Image (with timing)" (the one with timing shows how long each phase took in milliseconds, while the one without removes the time spent starting and stopping timers)
Note: Chrome (and possibly some Chromium forks) may refuse to fully load bigger-sized images (leaving some white pixels at the top part), but Firefox (and forks of it) render it correctly. Compatibility: - @griffpatch's image scanner (change the "rawImageData" list to where the scanned data is) - Any raw image data that has colors going left-to-right and rows being either top-to-bottom (normal) or bottom-to-top (make the height negative) Credits: - https://en.wikipedia.org/wiki/BMP_file_format (shows how the BMP format works, a huge help when making the conversion scripts) - "Every Block Timed v2" by @ChromeCat_Test (shows timing of every Scratch block, was very useful for optimizing and speeding up complex scripts) - Thumbnail based on the one in my Base64 encoder/decoder engine If you use this, please credit either @Mrk20200 or @Mrk20200_2nd.