« Snowstorm in 15 minutes | Main | Going To The Rainbow »

Elements 2007 Part 3

Introduction:
...and now for some sticky elemental snow! ~Kristin

elements1i.jpg

Author:Kristin Henry
Author's comments:
In this version, when the elements get near their position in the periodic table, they stick. Eventually, if you let this run long enough, the whole table will form. But when the table completes, the elements fall and the table formation starts over.

One thing I found interesting, was how obvious this makes the weighting of lower numbers in the random function. In my code, when a cell is created it's assigned a random atomic number and a random starting position (x is random, y is set to a constant). If the random function were truly random, there wouldn't be so many more cells generated closer to the left side of the stage than the right.


Support the educational projects at GalaxyGoo, and make an online donation through Network for Good or Facebook Causes..

For live version, and source files, continue reading.





Download Source.



Support the educational projects at GalaxyGoo, and make an online donation through Network for Good or Facebook Causes..



Creative Commons License

Creative Commons License


This work is licensed under a
Creative Commons GNU General Public License License and a
Creative Commons Attribution 3.0 United States License.