A sedimentary rock. Most of this code handles the sedimentation and cementation* process. This sucked. Balancing sucked more. But it is done.
*No compaction due to lack of weight or any means for pixels to detect when another pixel tries to move into them.