I’m afraid I do not understand what it is you want to achieve. There is a tutorial on parametric curves, which may be what you’re looking for: nazca-design.org/free_form_curves/.
You can program fractals by generating and placing the proper polygons. Not sure why you’d want that.