Code to generate triangle images

The pattern bounces back and forth between x=0/y=0 so the spiral
 is not a true spiral