pygame is
Simple DirectMedia Layer is
Site Swing

substrate - 0.3

Sam Swift (samile)




A pygame port of J.Tarbell's processing visualisation, based upon the xscreensaver implementation by M.Kershaw.

Cracks appear and through them sand falls. As the cracks become more numerous a city begins to form. If you continue the disconcerting feeling of moving away will strike you, as the city becomes more dense and continues to evolve.

This implementation allows you to place your own cracks and save snapshots.

Parameters you may modify include:
Screen dimensions
Background colour
Crack colour
Sand colours
Initial number of cracks
Maximum cracks
Invisible cracks
Cracks the colour of the sand
Percentage chance of a crack being curved
Percentage chance of new cracks being connected to old ones
Maximum degrees variation from perpendicular for new cracks
Number of sand grains
Maximum sand range



Fix explosion of new cracks for some colliding curves.


Home Page:


click to view original size


substrate - 0.4 - May 15, 2010
substrate - 0.3 - May 9, 2010
substrate - 0.2 - May 7, 2010
substrate - 0.1 - May 7, 2010 account Comments

If you wish to leave a comment with your account, please sign in first.

April 18, 2012 5:35am - benjamin lee - nickname: (benjamin)
The link is dead.
June 21, 2010 9:49am - Pawel Tokarz - nickname: (outslider) - 4/5
Great! Was it modeled on the cracked earth during the drought?
May 14, 2010 9:52pm - David Khono Hackland - nickname: (khono)
Very cool!
May 9, 2010 12:24am - Xandar Kablandar - nickname: (eternalcheesecake) - 5/5
Very cool.
May 8, 2010 7:58pm - pymike - nickname: (pymike) - 5/5
Awesome, great stuff. I let mine fill out.
May 7, 2010 9:10pm - Sam Swift - nickname: (samile) - 5/5
@ Chandler. Yes It is very chaotic. If you have any suggestions I would be glad to hear them.
May 7, 2010 2:44pm - josmiley / Luke spywoker - nickname: (mutualaccount) - 5/5
simply beautiful
May 7, 2010 1:11pm - Chandler Armstrong - nickname: (omnirizon) - 5/5
very very cool.
this conjures to mind complexity theory (how simple rules yield complex looking patterns) and demonstrates how simple it can be to make procedurally generated content that looks plausibly real (in this case, a city structure).

this is exactly what pygame needs more of.

our projects welcomes all python game, art, music, sound, video and multimedia projects. If they use pygame or not.
recent releases
Oct 9, 2015

Sep 11, 2015

Sep 6, 2015

Aug 26, 2015

Aug 25, 2015

Aug 21, 2015

Aug 16, 2015

Jul 30, 2015

... more!
for pygame related questions, comments, and suggestions, please see help (lists, irc)