ScratchData LogoScratchData
Back to papipupepappa's profile

Simple Shape Packing 2

PApapipupepappa•Created June 23, 2022
Simple Shape Packing 2
74
56
622 views
View on Scratch

Instructions

Click the green flag to pack 200 copies of a random costume into its own shape. Click the blue button to switch rotation on/off.

Description

Thanks to @Joyoforigami for suggesting a very simple way of making cutouts in the Scratch paint editor: https://scratch.mit.edu/projects/707356952/#comments-275802990 I have implemented it like this: ➊ Resize the costume to almost fill the stage. ➋ Convert to bitmap. ➌ Switch to the fill tool, pick a color not used in the costume, and shift-click a transparent area. (Shift-clicking fills all areas of the same color.) ➍ Change color to transparent, and shift-click all colors in the costume except the one you added in step 3. ➎ Change the color to white and shift-click a non-transparent area. I also made the size checking more efficient and fast.

Project Details

Project ID708541026
CreatedJune 23, 2022
Last ModifiedJune 23, 2022
SharedJune 23, 2022
Visibilityvisible
CommentsAllowed

Remix Information

Parent ProjectView Parent
Root ProjectView Root