Various Blender Python scripts
Credits:
Jeremy Behreandt (https://medium.com/@behreajj/creative-coding-in-blender-a-primer-53e79ff71e)
Daniel Shiffman (https://youtu.be/H81Tdrmz2LA)
(Or actually after running the script you need to select all the cubes and use the 'Assign Logic Bricks to selected objects' to make it work in BGE)
Credits:
Jeremy Behreandt (https://medium.com/@behreajj/creative-coding-in-blender-a-primer-53e79ff71e)
Manu Järvinen (Modified the color animations to work in BGE)