It simulates the trajectory of a point somewhere on a cycloid drawing machine. I kept adding gears to the gear train to get nice shapes. The code also stores the point array in a txt file called "outputx.txt" in case you want to import those points another software.
*2 gears; one sliding link on a slot and a point on the smaller gear. Shape drawn on the larger gear
*3 gears; one sliding link on a moving slot and a point on the smaller gear. shape drawing on the middle gear
*4 gears is yet to be started
#Trippy Shape Drawing for Planetary Orbits Added a file that plots simple geocentric orbits of planets, based on their time of revolution and orbit radius in AU.