Matrix GUI Assistance

mrmorrisplains's icon

I'm normally a flonum jockey, but I have had a request to make a more sophisticated GUI for a friend and I'm not sure where to start..

He'd like to work with a matrix, but be able to select shapes and drag them into the matrix. Maybe thinking along the lines of Tetris?

I imagine this will require some level of javascripting, but maybe someone here could recommend a good place to start?