To fill a tile, click it. To erase a tile, click it again. Click the filled board to fill the board. Click the empty board to erase everything. To save your picture, right-click the project player and click "Save image as".
Me for the code. Thanks to The Scratch team for the design. 1 sprite, 12 scripts, 299 blocks.