Thank you. It was a pleasure to work on this idea.
If you download the script to day, you will find a new version with the following modifications :
- you can choose the dimensions of the square matrix (from 2 to 8 lines and columns),
- a shadow on the sphere for the 3D was added,
- your work...