AFIK, there is no programesmatic way, it's typically done manually with something like
Inkscape (see also
nf-core docs). James Fellows Yates gave a
a while back, and if you want to animate it, Maxime has a
.
Ideally the pipeline you are modifying has an SVG (e.g. for
sarek) that you can edit, so it should not be way too hard (you'll probably have to export the final product as PNG for web display).