Code to generate casting forms for Tetris pieces.