generator for svgFns