A small and humble script that generate SVG images like the illustration above. Look at the code and a sample SVG output.