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.
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.