The 2D script looks pretty simple, I think a rectangular fill (using A and B parameters) should do it. You could add a new parameter for the fill type (instead of hard coding the fill), as well as foreground and background pens for additional controls.