Programmatically generate SVG (vector) images, animations, and interactive Jupyter widgets
1<?xml version="1.0" encoding="UTF-8"?> 2<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" 3 width="200" height="200" viewBox="0 0 200 200"> 4<defs> 5</defs> 6<rect x="0" y="0" width="200" height="200" stroke="gray" fill="none" /> 7<rect x="70" y="30" width="40" height="40" fill="silver" /> 8<rect x="70" y="30" width="40" height="40" fill="gray" transform="rotate(22.5)" /> 9<rect x="70" y="30" width="40" height="40" fill="black" transform="rotate(45)" /> 10</svg>