I used a custom python script to convert normal images into a "code" that can be used in Scratch to draw images! Use TurboWarp if render times are slow: https://turbowarp.org/589671111 Both modes: - Render button draws the image - Left button switches to the previous image - Right button switches to the next image Import mode only: - Add button allows you to add an image - Delete button deletes the current image Adjustable variables: - X variable controls the x position of the center of the image - Y variable controls the y position of the center of the image - Scale sets the current pixel size (1 is normal, anything higher makes the image bigger) - Continuous fills in gaps between pixels (when at 1) - Colour Effect sets the colour difference - Saturation controls how grey the image is - Brightness is how bright the image is (100 is normal) - Transparency controls how transparent the image is - Press the SPACE key to change the background If you want to, try playing around with a one pixel image using this code (change values to edit the image): 1,1,000100100000
To use this in your own project, backpack the "Images" sprite. That's all you need! :) You will also have to run the python script to convert your image(s). Details regarding python scripts and converting are on Github here: https://github.com/Hacker-Cat2/Scratch_Image_Translator Jan 4, 2023: Working on improving render times and code length by using hexadecimal values instead of base 10! (codes should be 33% shorter!) Project ideas: Slideshow, short low-res video/animation, some kind of game... Idk, be creative! How to use the decoder (the Scratch code included in this project): The Render custom block is the only pre-made custom block you'll have to deal with. To use it, put in the image code, scale, coordinates and so on (make sure everything's in the right order). Credits: @Scratch-mation's project "100% PEN Wobble the scratch logo!" made me think of making this. https://scratch.mit.edu/projects/588826797/ Google and Bing for random cat images. I made the Yoda. How it works: The python script converts every image into a code like this: The first two numbers are separated by commas, and represent the width and height of the image (in pixels). Every pixel is saved as twelve digits in the code, each of which is added to the end of the code. Each set of three digits in the twelve digit pixel code is a different property of that pixel. For example, if you had a pixel with code 030050100000, you could split it into each property like this: 030 is the colour, 050 is the saturation, 100 is the brightness, and 000 is the transparency. Every pixel's properties are in the same order. An example code is like this: 1,2,000100100000070100100000 1 is the width, and 2 is the height. Decoding the pixel properties creates a red pixel above a blue pixel. If you swapped the 1 and 2 (width and height), you'd end up with the red pixel left of the blue pixel. If you have any questions, ask in the comments!