This is an slot car track editor I built back in 2015 to avoid trial an error when setting up tracks.
During development (an earlier attempt used Logo, see below), I opted for Typescript to implement the different transformations required to compose the full track (rotations, translations).
Source code is available in this repository: https://github.com/ramongilmoreno/slotdesign.
Full screen editor can be accessed here.
Below is the original Logo souce. Can be tested here.
clearscreen make "scale 0.18 to phere :side pu rt -90 fd :side pd rt 90 fd :side rt 90 fd 2 * :side rt 90 fd 2 * :side rt 90 fd 2 * :side rt 90 fd :side pu rt 90 fd :side rt -90 pd end to here phere 5 end to plane :length here fd :length * :scale here end to plane40 plane 400 end to plane20 plane 200 end to plane10 plane 100 end to pquarter :direction here fd 235 * :scale rt 90 * :direction fd 96 * :scale rt -90 * :direction rt 45 * :direction here end to pleft pquarter -1 end to pright pquarter 1 end ht rt -90 plane40 plane40 plane40 pright pright pright plane40 pleft pleft plane40 pleft pleft pleft pleft plane40 plane40 pleft pleft pright plane40 plane20 pright pright pright pright