Icon Maker - Image Importer
1,562
Published 2018-03-24
It's actually a tool for importing images to use as icons in my Icon Maker project https://scratch.mit.edu/projects/26286098/ and any games that use these icons.
=== Instructions ===============================
1. Upload the image you want as a costume of the image sprite. You can also change the colour of the backdrop "scan" if you are using an image with transparency.
2. Go to the project page and click the green flag.
3. Drag a box around the part of the image you want.
4. Copy the code the project gives you.
=== Notes ===================================
Vector icons work better than bitmap.
It's not as good as I expected because Scratch doesn't antialias sprites when it scales them down. Maybe one day I'll change it to do the antialiasing myself. If you really want, you can scale the image down to 15x15 in a graphics program of your choice before you import it.
The colour matching isn't perfect either because the colour sensing blocks are quite loose with what colours they accept. Again, if you really want perfect matching you can convert the image to 216 colours before you import it.
It works best with fairly small images. Selecting a small section of the example sprite seems to produce quite good icons.